Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^4: CGI::Ajax + Template::Toolkit Question

by stonecolddevin (Parson)
on Mar 09, 2007 at 01:01 UTC ( [id://603921]=note: print w/replies, xml ) Need Help??


in reply to Re^3: CGI::Ajax + Template::Toolkit Question
in thread CGI::Ajax + Template::Toolkit Question

UPDATE:Would still like to know if this would be a usable solution, however problem has been solved.

Ahhh whoops, don't know how I missed that.

I was turning this over in my head, the show_javascript function returns the javascript as text...would it be better to have a template variable in the <HEAD> section of my template and insert it via T::T? Perhaps that would rid me of the error being thrown by CGI::Ajax.

Thoughts?

meh.

Replies are listed 'Best First'.
Re^5: CGI::Ajax + Template::Toolkit Question
by randyk (Parson) on Mar 09, 2007 at 07:12 UTC
    Yes, you can do that - see the pjx_nobuild.pl example in the CGI::Ajax sources for how to do that (note that the line $html .= $pjx; in the example calls show_javascript, due to the overloading done in CGI::Ajax).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (None)
    As of 2024-04-25 04:02 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found