I am using a dropdown list to select a court location.
When the location is selected,
the address field and the phoneNo field are updated according to the location selected.
I have tried in vain to get the website field populated with a rich text hyperlink.
I tried to save the rich text in a variable, but ES4 gives me an error for the escaped quotes (\")
var oLink = "<body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\"><p style=\"letter-spacing:0in\"><a href=\"http://www.provincialcourt.bc.ca/court-location/" + sLoc + "\" style=\"margin-top:0pt;margin-bottom:0pt;text-valign:bottom;font-family:'Helvetica';font-size:8pt\">" + sLoc + "</a></p></body>";
courtWebsite.value.exData.loadXML (oLink, false, true);
When I change the escape quotes to single quotes, I don't get an error but:
BTW, it does not resolve the content of sLoc; so I replaced sLoc within oLink with the actual content... same problem.
Views
Replies
Total Likes