not Evaluating

Hi,

globals.html = "<html>"
globals.html += "<a href='javascript:methodName(value)'>Hi..........</a>";
globals.html += "</html>";

In the above code, when i am passing a numerical value to the method methodName, It is working. But if i will pass a String it is not working.

Can any one please help on this.

Put the string value between quotes like this:

globals.html = "<html>" 
globals.html += "<a href='javascript:methodName(\'value\')'>Hi..........</a>"; 
globals.html += "</html>";

ROCLASI:
Put the string value between quotes like this:

globals.html = "<html>" 

globals.html += “<a href=‘javascript:methodName('value')’>Hi…”;
globals.html += “”;

Hi Robert,

Still, it is not Working.

Showing the error

Couldnot eval the string ‘methodName(value)’

Hi Robert,

It is working.

It will be

globals.html += “<a href=‘javascript:methodName(/‘value/’)’>Hi…”;

Thanks a lot.