Perhaps RTFM?tst.650a.formapi.pdf - FormsPublisher: FormAPI Developer’s GuidePage 29 - Remote Server Calls
What is the javascript error?Maybe post your code (as attachments).
I asked you to post your code. Your descriptions of the problem aren't really good enough. Please post the scripts.My suggestion would be to use [PHP]$val = CGI::escape($val); [/PHP] in Perl before writing it to your HTML document/Javascript variable.You can then use the JS unescape function to reverse the escaping.