A label increase onclick event hint undefined function

Source: Internet
Author: User

The project is using the EXT framework and the version is ext4.2

The problem code appears as follows:

1 function (value) {2     var html = "<a href=\" javascript:void (0); \ "Onclick=\" Editserver (' "+value+" ') \ "Style=\" Text-decoration: Underline;color:blue;\ "> Edit </a>&nbsp;&nbsp;" +3           "<a href=\" javascript:void (0); \ "Onclick=\" AccountBalance (' "+value+" ') \ "Style=\" Text-decoration:underline;color:blue;\ "> Balance </a>"; 4     return html; 5  }

And the Editserver method is defined below

  1  function   Editserver (value) {  2  ext.create (' Ext.window.Window '   3  Y:50,   4  x:150,   5  title: ' Edit Channel '   6  MoD Al: true  ,   width:680,   8  height:330 9  10 } 

But it's not defined when it's running:

Referenceerror:editserver is not defined

Workaround:

Change the method to:

window.editserver= function (value) {

......

}

Successful after running again

Reference URL: http://bsdn.org/projects/dorado7/issue/dorado7-6800

A label increase onclick event hint undefined function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.