English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Basically, I think the problem is that I don't want to the contents of a form submitted when the button is clicked. Once the button is clicked, some input fields will be populated with infromation retrieved from a file on the web server..

I'm a little new to this CGI thing so be kind. ;-)

Thanks,
Mark

2006-11-29 04:55:19 · 3 answers · asked by Mark B 2 in Computers & Internet Programming & Design

3 answers

that's not cgi.... it comes into the ajax family. ajax & json. both asynchronously connect to the server (much like cgi) get some data. You get the data in the form of a string or fully parsed into a dom!

Now if that sounds cool but a lot of work, you are right (about the cool part).

ajax low level native javascript can be a pain in the ***! But when you use a code library that already does the dirty work, it's just a few lines of javascript! (really, just a few lines)!

I use jquery (http://jquery.com) and it has made a big difference in many of my sites!

Join the revolution!

2006-11-29 07:18:28 · answer #1 · answered by jake cigar™ is retired 7 · 0 0

search for JFileChooser and reduce the alternative to information fairly of directories. you'll discover better information in case you google about Jfilechooser. you are able to used buffered reader or something comparable to envision the textual content and use the set textual content in textual content area to the textual content examine through the reader.

2016-10-07 23:14:52 · answer #2 · answered by ? 4 · 0 0

Use the following module from cpan to call a ajax method to achieve your goal.

http://search.cpan.org/~bct/CGI-Ajax-0.697/lib/CGI/Ajax.pm

2006-11-29 04:59:39 · answer #3 · answered by Bryan 3 · 0 0

fedest.com, questions and answers