in reply to Question about CGI and Javascript
You can do it with pure Perl, but you won't be able to create a popup window like in JavaScript. Rather, you send it to an initial CGI that grabs the list of stuff to be deleted, tells the user "are you sure about this?", with a "Yes, I am sure" button at the bottom. That button gives the data to a second CGI that does the actual deletion.
JavaScript will save you an extra server request each time. Also, you should be coding your pages in a such a way that you can still gain the benifits of JavaScript when its on in the browser, but won't stop you from using the web page if the browser has it shut off.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Question about CGI and Javascript
by shemp (Deacon) on May 13, 2003 at 19:36 UTC | |
|
Re: Re: Question about CGI and Javascript
by AnneMarieK (Initiate) on May 13, 2003 at 18:07 UTC | |
by hardburn (Abbot) on May 13, 2003 at 18:11 UTC |