Re: [htmltmpl] using HTML::Template with CGI:Ajax
Brought to you by:
samtregar
From: Dan H. <dan...@re...> - 2007-04-13 00:53:03
|
Hi Have a look at the CGI::Ajax demo code for "Skips using build_html()" http://www.perljax.us/demo/pjx_nobuild.txt As with the example you'll need to include <div id=3D'__pjxrequest'></div> in your template. Since your html is in a template you can ignore the example's "hard-coded" HTML, and simply make sure that you have the following H::T tag in your HTML <head> section: <tmpl_var pjx>=20 Set the tag in your Perl code with $template->param('pjx' =3D> $pjx);=20 Sorry I don't have any concise examples since I use CGI::Ajax with CGI::Application and there's a lot of irrelevant stuff, but this should = work for you Dan > -----Original Message----- > From: htm...@li...=20 > [mailto:htm...@li...] On=20 > Behalf Of Greg Jetter > Sent: Friday, 13 April 2007 12:30 p.m. > To: htm...@li... > Subject: [htmltmpl] using HTML::Template with CGI:Ajax >=20 > HI folks: >=20 > =A0=A0=A0=A0=A0=A0=A0=A0I'm trying to figure out how to use =A0the two = =A0modules=20 > together , I've been using HTML::Template for a wile now =A0and=20 > and commfy using it , I want to start using =A0the =A0CGI::Ajax=20 > module =A0and am looking for =A0examples or advice on how to call=20 > my template file =A0and have it work with the other. From what=20 > I understand , =A0the CGI::Ajax object is supposed to =A0write=20 > stuff to the header of the returned =A0html code passed to it. >=20 > anybody ever use these two together ?=20 >=20 > I'm thinking that the cgi-ajax method =A0build_html is what I=20 > need =A0and maybe pass it =A0tmpl->output ? >=20 >=20 > I haven't even =A0written =A0any code yet , still researching ,=20 > Google dose not=20 > give me much to work with so I'm trying here. >=20 > Just would like to see a simple example of =A0using HTML::Template = with=20 > =A0CGI::Ajax .=20 >=20 >=20 >=20 >=20 > Thanks=20 >=20 > Greg Jetter >=20 > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the=20 > chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge &CID=3DDEVDEV > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users >=20 |