Posted By:
Sarada_Lakhamraju
Posted On:
Tuesday, October 22, 2002 08:01 PM
Hello All, I have a html form in which I have a textbox on the event onFocus on that textbox, a new window pops up with some hyperlinks. on clicking anyone hyperlink, that data will be go into the textbox. I have written the following code for the hyperlinks for the onclick event of anchor tag its onclick="opener.document.formname.textboxname.value='American Type Culture Collection'; return false;" See view source for the code for this hyperlink " American Type Culture Collection " This works fine with all data, but if the data contains a single quote then I have a problem, it gives an error, how can I handle this??
More>>
Hello All,
I have a html form in which I have a textbox on the event onFocus on that textbox, a new window pops up with some hyperlinks. on clicking anyone hyperlink, that data will be go into the textbox.
I have written the following code for the hyperlinks for the onclick event of anchor tag its
onclick="opener.document.formname.textboxname.value='American Type Culture Collection'; return false;"
See view source for the code for this hyperlink
"
American Type Culture Collection
"
This works fine with all data, but if the data contains a single quote then I have a problem, it gives an error, how can I handle this??
I hope I am clear with my question!!!
Thanks,
Sarada.
<<Less