Perl: the Markov chain saw | |
PerlMonks |
Re: use Ext Js EditorGridPanel in Perlby Proclus (Beadle) |
on Sep 20, 2010 at 14:58 UTC ( [id://860855]=note: print w/replies, xml ) | Need Help?? |
I also use a template based approach in my web projects. In addition, I use a JSON based messaging system. Perl returns the data in JSON format, and you can process the returned javascript data structure to feed the EditorGridPanel. This mechanism works with AJAX as well as normal page loads. For the latter, I fill the JSON output inside a <script> tag (which is fethed as part of an html template); when the html is sent to the browser, the json data structure can be processed by the relevant JS methods in your onLoad() method. For templating solutions, you can have a look at HTML::Template, Clearsilver, Template::Toolkit in CPAN. For json: JSON::XS or JSON::PP.
In Section
Seekers of Perl Wisdom
|
|