in reply to Re: Perl, JavaScript and quoting/escaping
in thread Perl, JavaScript and quoting/escaping
This is great! However I have one question. Is there an alternative to text_to_js_lit packaged as a module?
I'm surprised that (q{\'\'} eq q{\'\'}); wouldn't this be eq q{''}?
In any case the reason I ask is that for testing I'd like to pass perl strings to JS alert(). The problem was at first:
alert("Error: ERROR: null value in column "bidder_username" violates not-null constraint"); Where I was so lost as to why I couldn't get my string to popup.
Then this:
alert("Error: ERROR: null value in column "bidder_username" violates not-null constraint");
Where the result is not readable, this string is displayed as is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl, JavaScript and quoting/escaping
by ikegami (Patriarch) on May 06, 2011 at 00:12 UTC | |
by Anonymous Monk on May 06, 2011 at 01:49 UTC | |
by Anonymous Monk on May 06, 2011 at 01:53 UTC | |
by ikegami (Patriarch) on May 06, 2011 at 05:09 UTC | |
by Anonymous Monk on May 06, 2011 at 06:03 UTC | |
by Anonymous Monk on May 06, 2011 at 02:08 UTC | |
by Anonymous Monk on May 06, 2011 at 03:15 UTC | |
by Anonymous Monk on May 06, 2011 at 03:39 UTC |