Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: submit button with javascript confirmation

by greenFox (Vicar)
on Aug 15, 2002 at 08:41 UTC ( #190341=note: print w/ replies, xml ) Need Help??


in reply to Re: submit button with javascript confirmation
in thread submit button with javascript confirmation

I take your point, in this instance though the target environment has a strictly controlled SOE with IE5 with javascript turned on and I was told to make the user feedback java alerts... I didn't mention it because I was trying to stay out of the javascript debate :)

What do you mean by an "ordinary button"? I still need to submit the form if the user hits OK on the java confirm popup, how else would I do that?

--
Until you've lost your reputation, you never realize what a burden it was or what freedom really is. -Margaret Mitchell


Comment on Re: Re: submit button with javascript confirmation
Re: Re: Re: submit button with javascript confirmation
by Moonie (Friar) on Aug 15, 2002 at 17:56 UTC
    you could always have a button that would go to a function and basically submit the form if the user clicked ok on the confirmation message. i.e.
    <input type="button" name="submit" value="javascript: submitForm();"> <script language="javascript"> function submitForm() { if (confirm("delete account?")) { mainForm.submit(); } } </script>
    this wasn't a very perl-y example.. but it's similar to what simon.proctor suggested.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190341]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (15)
As of 2014-08-01 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (19 votes), past polls