Facing problem to pass a quoted String as a parameter in javascript function
Pradeep Chaubey
Greenhorn
Joined: Jun 15, 2009
Posts: 20
posted
0
Dear members,
I am facing a problem passing a parameter under a single quote in javascript function in IE8, Its working fine in firefox.
I am using Tapestry 5. My code is as follows :
I tried the in this format also :
The javascript function never gets called and when I remove the Quote from the String it works.
Plase help me to resolve the issue.
Chris Baron
Ranch Hand
Joined: Mar 21, 2003
Posts: 1028
posted
0
Maybe it's the leading "javascript:". That doesn't belong to an onclick attribute.
Pradeep Chaubey
Greenhorn
Joined: Jun 15, 2009
Posts: 20
posted
0
Hi Chris ,
I have got my problem resolved. It was not because of leading javascript. Actually the parameters were
dynamically getting populated and the bean which was doing this, was having wrong value for a quoted String.
That's why the javascript function was not called.
Thank you very much, you spent your valuable time in this problem.
subject: Facing problem to pass a quoted String as a parameter in javascript function