### 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??

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
[download]

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.

Replies are listed 'Best First'.
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 :)

Create A New User
Node Status?
node history
Node Type: note [id://825099]
help
Chatterbox?
 [LanX]: I want the command line in the history [tye]: -Mouse [Corion]: Option a) would mean launching cmd.exe /k c:\path\to\ batchfile- launching-perl- script.cmd. Option b) would be to add pause as the last line of said batch file. [LanX]: First day after holidays ... and already stressed by the fact that colleagues changed stuff without communication ... apparently I'm the only one trying to fight entropy [Corion]: LanX: The command is always in the history if you typed it in before. If you didn't type the command into the command line, it will not be there. I think there is doskey which can stuff command lines into the history LanX damns the cult of CB ;-) LanX WTF WTF WTF [LanX]: please forget my last 3 posts [LanX]: Yeah option a doesn't go into history [LanX]: probably I need to teach the app to restart after C-c Kill

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-03-27 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Should Pluto Get Its Planethood Back?

Results (320 votes). Check out past polls.