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> " +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