in reply to Re: jQuery and Perl
in thread jQuery and Perl

That's what I thought... I saw a post somewhere where someone claimed to have inserted <%perl> inside the function part of the jQuery script, but I couldn't see how a client-side function could cause any back-end processing, but I figured I'd ask anyway.

Thanks for the advice. It'll probably be easier to support with static HTML pages anyway. If management decides to add a bunch of extra functionality later (which I guess is very likely), having Perl scripts generate all those pages would be messy anyway, let alone trying to incorporate jQuery as well.

Replies are listed 'Best First'.
Re^3: jQuery and Perl
by marto (Cardinal) on May 27, 2010 at 14:48 UTC

    "having Perl scripts generate all those pages would be messy anyway, let alone trying to incorporate jQuery as well."

    Yeah, that's why I use HTML::Template, it's pretty much the same as having a standard HTML file with the exception that you can populate (via non HTML, HTML::Template specific tags) the HTML/JavaScript/jQuery/css from from Perl, in my case, our Oracle databases. Perhaps overkill for what you are working on, but I'd suggest looking at a templating system, see Framework, Templating, and Content Management Systems from the tutorials section for further reading.

    Best of luck

    Martin

      Thanks, I'll definitely check out HTTP::Template. I hadn't really looked at it before, but from what you said, sounds exactly like what I need to save quite a bit of time and effort.
Re^3: jQuery and Perl
by Anonymous Monk on May 27, 2010 at 14:51 UTC

      pQuery just ports the jQuery API to Perl. It does not provide any RPC mechanism and/or interpolation mechanism which would allow you to mix Perl and Javascript or to write your Javascript in Perl.