Using Perl/CGI/Javascript to enable an HTML button to retrieve contents from a file and have them displayed.?
Mark B
2006-11-29 09:55:19 UTC
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
Three answers:
jake cigarâ„¢ is retired
2006-11-29 12:18:28 UTC
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!
hancox
2016-10-08 03:14:52 UTC
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.
Bryan
2006-11-29 09:59:39 UTC
Use the following module from cpan to call a ajax method to achieve your goal.