Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^6: Load JS files faster inside CGI script

by kalyanrajsista (Scribe)
on Feb 24, 2010 at 16:08 UTC ( #825099=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Load JS files faster inside CGI script
in thread Load JS files faster inside CGI script

Sorry Corion, don't mistake me

I've the working code with me implemented in Perl and JavaScript and I'll post in my next post.

Let me clarify you that

Perl is for getting information from the database to populate the list +boxes.. I'm refering Continents and Countries for better understanding... Say, listbox 1 -> Continents and listbox 2 -> Countries I'll fetch all the Continents information and related countries and wh +en any user tries to select a particular continent in listbox 1 & cor +responding countries will be displayed in listbox 2

Also, my intention is just point me to any example sites where not exactly this type of requirement is implemented but can show any other working examples... I can understand without any proper specifications or working code, nobody can draw conclusions of how to improve or suggest a better solution.


Comment on Re^6: Load JS files faster inside CGI script
Download Code
Re^7: Load JS files faster inside CGI script
by Corion (Pope) on Feb 24, 2010 at 17:03 UTC

    I suggest that you read the jQuery Ajax Documentation, and write a Perl program that returns just the relevant part of the information, that is, for a given continent, you make a request for its contained countries.

    Also, I wonder how you get a list of 7MB for just associating countries and continents. That strikes me as a bit large.

      Also, I wonder how you get a list of 7MB for just associating countries and continents. That strikes me as a bit large.

      Aaah! The power of prototype based object-orientation :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-12-17 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (34 votes), past polls