Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

CGI::Ajax and html::template

by perlkhan77 (Acolyte)
on Jul 08, 2010 at 05:44 UTC ( #848615=perlquestion: print w/ replies, xml ) Need Help??
perlkhan77 has asked for the wisdom of the Perl Monks concerning the following question:

Now i know this question has been posted before but there was no clear answer how to integrate html::template with cgi::ajax i dont seem to get what to pass to the cgi::ajax buildhtml function it will be great help if someone can post an example thanks

Comment on CGI::Ajax and html::template
Re: CGI::Ajax and html::template
by Anonymous Monk on Jul 08, 2010 at 06:16 UTC
    Now i know this question has been posted before but there was no clear answer how to integrate html::template with cgi::ajax

    Where?

    i dont seem to get what to pass to the cgi::ajax buildhtml function it will be great help if someone can post an example thanks

    For an example see readmore section of CGI::Ajax + Template::Toolkit Question (Template or HTML::Template, its works the same).

    See also CGI::Ajax documentation

    build_html() Purpose: Associates a cgi obj ($cgi) with pjx object, inserts javascript into <HEAD></HEAD> element and constructs the page, or part of the page. AJAX applications are designed to update only the section of the page that needs it - the whole page doesn't have to be redrawn. L<CGI::Ajax> applications use the build_html() method to take care of this: if the CGI parameter C<fname> exists, then the return from the L<CGI::Ajax>-exported function is sent to the page. Otherwise, the entire page is sent, since without an C<fname> param, this has to be the first time the page is being built. Arguments: The CGI object, and either a coderef, or a string containing html. Optionally, you can send in a third parameter containing information that will get passed directly to the CGI object header() call. Returns: html or updated html (including the header) Called By: originating cgi script
      This node has similar kind a question no clear answer though http://www.perlmonks.org/?node_id=586704
Re: CGI::Ajax and html::template
by derby (Abbot) on Jul 08, 2010 at 11:39 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2014-12-18 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (59 votes), past polls