H
Hugo Wetterberg
I've got a problem with the escape function in JScript.
It simply doesn't escape the single quotation mark '
This becomes a problem when I have to construct javascript calls.
I'm trying to pass the url
ref_handler.aspx?id=someguid&name=O'Brien
as a parameter to a javascript function.
What should have been:
javascriptopUp('ref_handler.aspx%3fid%3dsomeguid%26name%3dO%27Brien')
becomes
javascriptopUp('ref_handler.aspx%3fid%3dsomeguid%26name%3dO'Brien')
And this, of course, works just about as well as my latest perpetual
motion machine.
Comments?
Cheers Hugo
It simply doesn't escape the single quotation mark '
This becomes a problem when I have to construct javascript calls.
I'm trying to pass the url
ref_handler.aspx?id=someguid&name=O'Brien
as a parameter to a javascript function.
What should have been:
javascriptopUp('ref_handler.aspx%3fid%3dsomeguid%26name%3dO%27Brien')
becomes
javascriptopUp('ref_handler.aspx%3fid%3dsomeguid%26name%3dO'Brien')
And this, of course, works just about as well as my latest perpetual
motion machine.
Comments?
Cheers Hugo