in reply to Re^7: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
in thread CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
Hi monks,
Anonymous monk, and poj, that was helpful, and below is code, which worked
$html .= $cgi->div({-id=>'container'}, $cgi->img({src=>'images/pic.png', height=>'100px', + width=>'150px'}), ( do { for(1..3){ $foo .= $_ } $foo ## last statement is like "return $foo;" } # end of do ), $cgi->div(
I took some time to meditate (or staring ;-)), on Perl Documentation (perldoc perl), and things started to make sense.
Thanks again! and I am back to meditation ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^9: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
by Anonymous Monk on Sep 04, 2013 at 03:35 UTC |
In Section
Seekers of Perl Wisdom