Hi,
If I have the ' character within the javascript:pick command it doesn't
work. Is there some sort of way of escaping these characters like in
server side languages.
function pick(symbol) {
if (window.opener && !window.opener. closed)
window.opener.d ocument.create. text1.value = symbol;
window.close();
}
<A HREF="javascrip t:pick('This doesn't work')">This doesn't work</A>
It works fine as long as there is no ' in the pick bit. I need to be
able to accept any characters in there as it's created by the users.
Any ideas?
Thanks
Gary
If I have the ' character within the javascript:pick command it doesn't
work. Is there some sort of way of escaping these characters like in
server side languages.
function pick(symbol) {
if (window.opener && !window.opener. closed)
window.opener.d ocument.create. text1.value = symbol;
window.close();
}
<A HREF="javascrip t:pick('This doesn't work')">This doesn't work</A>
It works fine as long as there is no ' in the pick bit. I need to be
able to accept any characters in there as it's created by the users.
Any ideas?
Thanks
Gary
Comment