3 Replies Latest reply on Apr 3, 2009 6:54 AM by R.R._Allen

    Problem returning a string with "backslash-quote" in it to Javascript

    mccreavy
      Hi,

      My problem: if I return a string with a "backslash-quote" sequence in it, something between Flash and Javascript is choking.

      Javascript doesn't get the string back, it gets "null" or "undefined" depending on the browser.

      If I return a string with just quotes in it, eg:

      return "hello: \"test\"";

      things work great. It's when there's actually \" *in* the string that things blow up, eg:

      return "hello: \\\" test";

      (note the backslash and quote are escaped themselves to generate a string with \" in it.)

      I have created a small flash applet to demonstrate the problem I am experiencing:

      http://mccreavy.com/EscapedQuoteReturnTest/bin-release/EscapedQuoteReturnTest.html

      Is this a known bug? Is there a workaround?

      Thanks for any help you can provide!