Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

use Ext Js EditorGridPanel in Perl

by rule_breaker (Initiate)
on Sep 20, 2010 at 12:05 UTC ( #860821=perlquestion: print w/replies, xml ) Need Help??

rule_breaker has asked for the wisdom of the Perl Monks concerning the following question:

Hello 2 all .. I am new to perl.
I would like to Create interface using EXTJS EditorGridPanel which display the data from database and user can add delete or edit the data on the same.
How do I Create Extjs EditorGridPanel using perl.Please let me know... Thanks in Advanced!!!!!!!!

Replies are listed 'Best First'.
Re: use Ext Js EditorGridPanel in Perl
by marto (Cardinal) on Sep 20, 2010 at 12:41 UTC

    Isn't this a JavaScript library? If so this isn't really a Perl question. What are you having difficulty with? Using this framework? Populating it with values from a Perl script?

    Try getting it working with a HTML file first. Once you've got that working use the HTML file as a basis for a HTML::Template (or similar) template.

Re: use Ext Js EditorGridPanel in Perl
by Proclus (Beadle) on Sep 20, 2010 at 14:58 UTC
    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.
      Thanks.... Please can you give me example. And one thing how do get the params from Java script Eg. This is my JS code and i want the base params
      id: 'PresidentsDataStore', proxy: new Ext.data.HttpProxy({ url: '/cgi-bin/extjstest/order_module_data.cgi', method: 'POST' }), baseParams:{task: "LISTING"}, // this parameter is passed for any +HTTP request reader: new Ext.data.JsonReader({ root: 'results', totalProperty: 'total', id: 'id' },[ {name: 'IDpresident', type: 'int', mapping: 'IDpresident'}, {name: 'FirstName', type: 'string', mapping: 'firstname'}, {name: 'LastName', type: 'string', mapping: 'lastname'}, {name: 'IDparty', type: 'int', mapping: 'IDparty'}, {name: 'PartyName', type: 'string', mapping: 'name'}, {name: 'TookOffice', type: 'date', mapping: 'tookoffice'}, {name: 'LeftOffice', type: 'date', mapping: 'leftoffice'}, {name: 'Income', type: 'float', mapping: 'income'} ]),
        your_object.baseparams

        But seriously, if you're struggling to put the pieces together, Using Perl, jQuery, and JSON for Web development is an example of a complete app. It doesn't use that particular javascript, but it does manipulate a database.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2020-10-25 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?