Hi all,
I have a form with a series of fields. When a user selects an option in the first menu, I use ajax to populate the rest of the fields by grabbing this content form another file i.e.:
This all works fine. The problem happens when I try to grab the data for my HTML editor. Some of the code in the HTML is causing the javascript to run an error. I've tried replacing all double quotes with single quotes but as expected this wasn't enough.
Does any one have any ideas on how to make this work or a better way of doing this?
Thanks,
Richard
I have a form with a series of fields. When a user selects an option in the first menu, I use ajax to populate the rest of the fields by grabbing this content form another file i.e.:
Code:
formObj.pageTitle.value = "Home Page";
formObj.linkTitle.value = "Home";
formObj.alternativeLink.value = "/index.cfm";
This all works fine. The problem happens when I try to grab the data for my HTML editor. Some of the code in the HTML is causing the javascript to run an error. I've tried replacing all double quotes with single quotes but as expected this wasn't enough.
Does any one have any ideas on how to make this work or a better way of doing this?
Thanks,
Richard