Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^8: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.

by msinfo (Sexton)
on Sep 03, 2013 at 18:35 UTC ( #1052162=note: print w/ replies, xml ) Need Help??


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 ;-)


Comment on Re^8: CGI::Ajax No head/html tags, nowhere to insert. Returning javascript anyway.
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-07-05 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls