Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

double qoute inverted comma problem

by AlexTape (Monk)
on Aug 03, 2011 at 15:03 UTC ( #918295=perlquestion: print w/replies, xml ) Need Help??
AlexTape has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks
I want to generate a dynamic button with cgi.pm

$var_Typ = "variable"; $q->button(-id=>"$var_Typ-parm-toggle", -value=>'show/hide', -onClick=>"toggle_visibility('$var_Typ');", -name=>"show table"),

but i dont get what i want:

<input type="button"  name="show table" value="show/hide" onclick="toggle_visibility(&#39;variable&#39;);" id="variable-parm-toggle" />

the & # 3 9 should be a simple ' to get up with the js function..
now i seek for your advice...

$perlig =~ s/pec/cep/g if 'errors expected';

Replies are listed 'Best First'.
Re: double qoute inverted comma problem
by Your Mother (Chancellor) on Aug 03, 2011 at 15:29 UTC

    CGI.

    use CGI ":standard"; my $var_Typ = "variable"; autoEscape(0); print CGI::button(-id=>"$var_Typ-parm-toggle", -value=>'show/hide', -onClick=>"toggle_visibility('$var_Typ');", -name=>"show table"); __END__ <input type="button" name="show table" value="show/hide" onclick="tog +gle_visibility('variable');" id="variable-parm-toggle" />

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://918295]
Approved by moritz
help
Chatterbox?
[stevieb]: It is clear that JetBrains needs an XS plugin. That at this time is WAY beyond my comprehension :)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-02-22 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (323 votes). Check out past polls.