in reply to submit button with javascript confirmation
Its probably not much but as a matter of personal javascript style I would have suggested that you create an ordinary button rather than submit button and put the click handler on that.
Again thats only a matter of personal taste but my personal opinion is that if you are going to override the submit functionality then you should really not use a submit button.
YMMV but I've found that approach to be the least error prone, especically as not everyone has IE5 as a base minimum (Linux and Macs anyone?). Of course, you absolutely must have the button in a Form otherwise you can forget it in Netscape.
Still, better yet, why not just put a confirmation screen in your CGI for those with javascript turned off?
Again thats only a matter of personal taste but my personal opinion is that if you are going to override the submit functionality then you should really not use a submit button.
YMMV but I've found that approach to be the least error prone, especically as not everyone has IE5 as a base minimum (Linux and Macs anyone?). Of course, you absolutely must have the button in a Form otherwise you can forget it in Netscape.
Still, better yet, why not just put a confirmation screen in your CGI for those with javascript turned off?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: submit button with javascript confirmation
by greenFox (Vicar) on Aug 15, 2002 at 08:41 UTC | |
by Moonie (Friar) on Aug 15, 2002 at 17:56 UTC |
In Section
Cool Uses for Perl