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
In reply to Re: Question about CGI and Javascript
by hardburn
in thread Question about CGI and Javascript
by AnneMarieK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |