I can’t figure this problem out with a HTML hyperlink:
This is the code to set the hyperlink:
'<td><a href="javascript:globals.myMethod("'+ myvar + '")"><font color="394d66">' + myvar + '</font></a></td>' +
The URL seems to look good in the HTML:
<td><a href="javascript:globals.myMethod("active")"><font color="394d66">active</font></a></td>
But when I click on the hyperlink I get an error message saying that it can’t evaluate the string: ‘globals.myMethod(’.
Even when I use:
'<td><a href="javascript:globals.MyMethod(' + myvar + ')"><font color="#394d66">' + myvar + '</font></a></td>\n' +
I recieve a similair error message, but then it contains also the variable and the details returns that “active” is not defined.