rashley has asked for the wisdom of the Perl Monks concerning the following question:
$result .= $cgi->button( -name=>'AddFlagNote', -value=>'Add Flag Note', -onclick=>qq{return addNote(\'FlagNotesTable\');});
The problem is that last line. The HTML I get is
onclick="return addNote('FlagNotesTable');"
when what I want is
onclick="return addNote('FlagNotesTable');"
I've tried all of the following with no luck:
qq{return addNote(\'FlagNotesTable\');}); q{return addNote(\'FlagNotesTable\');}); qq{return addNote('FlagNotesTable');}); q{return addNote('FlagNotesTable');}); "return addNote(\'FlagNotesTable\');"); 'return addNote(\'FlagNotesTable\');'); "return addNote('FlagNotesTable');"); 'return addNote('FlagNotesTable');');
How do I get the single quotes in there? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI, Javascript and Single Quotes
by ikegami (Patriarch) on Nov 15, 2006 at 16:22 UTC | |
by rashley (Scribe) on Nov 15, 2006 at 18:28 UTC | |
by ikegami (Patriarch) on Nov 15, 2006 at 19:05 UTC | |
|
Re: CGI, Javascript and Single Quotes
by Melly (Chaplain) on Nov 15, 2006 at 16:32 UTC | |
|
Re: CGI, Javascript and Single Quotes
by ptum (Priest) on Nov 15, 2006 at 16:14 UTC | |
by rashley (Scribe) on Nov 15, 2006 at 18:26 UTC | |
by ptum (Priest) on Nov 15, 2006 at 18:58 UTC | |
|
Re: CGI, Javascript and Single Quotes
by rashley (Scribe) on Nov 15, 2006 at 21:42 UTC |