Re: [htmltmpl] using HTML::Template with CGI:Ajax
Brought to you by:
samtregar
From: Greg J. <gr...@al...> - 2007-04-13 03:57:06
|
On Thursday April 12 2007 4:53 pm, Dan Horne wrote: > 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> > > Set the tag in your Perl code with > > $template->param('pjx' =3D> $pjx); > > 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... > > [mailto:htm...@li...] On > > Behalf Of Greg Jetter > > Sent: Friday, 13 April 2007 12:30 p.m. > > To: htm...@li... > > Subject: [htmltmpl] using HTML::Template with CGI:Ajax > > > > HI folks: > > > > =A0=A0=A0=A0=A0=A0=A0=A0I'm trying to figure out how to use =A0the two = =A0modules > > together , I've been using HTML::Template for a wile now =A0and > > and commfy using it , I want to start using =A0the =A0CGI::Ajax > > module =A0and am looking for =A0examples or advice on how to call > > my template file =A0and have it work with the other. From what > > I understand , =A0the CGI::Ajax object is supposed to =A0write > > stuff to the header of the returned =A0html code passed to it. > > > > anybody ever use these two together ? > > > > I'm thinking that the cgi-ajax method =A0build_html is what I > > need =A0and maybe pass it =A0tmpl->output ? > > > > > > I haven't even =A0written =A0any code yet , still researching , > > Google dose not > > give me much to work with so I'm trying here. > > > > Just would like to see a simple example of =A0using HTML::Template with > > =A0CGI::Ajax . > > > > > > > > > > Thanks > > > > Greg Jetter > > > > -------------------------------------------------------------- > > ----------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the > > 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 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the 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=3D= DEVDEV > _______________________________________________ > Html-template-users mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/html-template-users thanks Dan , that helps a lot Greg |