On a button it works, but not a type="submit"


What if _javascript_ is turned off?
I would only use a type="button" in a controlled environment, not on the
internet, but that's just how I work, take it or leave it.

Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/

Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Nathan Strutz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 12 February 2004 7:20 AM
To: CF-Talk
Subject: RE: Prevent Refresh

<input type="button"
>
This will still submit the form.

-nathan strutz

  -----Original Message-----
  From: Taco Fleur [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 11, 2004 2:13 PM
  To: CF-Talk
  Subject: RE: Prevent Refresh

  1) I think you mean hide the button, as soon as you disable the submit
  button it will not submit the form, even if you just clicked it.

  Taco Fleur
  Blog  <http://www.tacofleur.com/index/blog/>
  http://www.tacofleur.com/index/blog/
  Methodology http://www.tacofleur.com/index/methodology/

  Tell me and I will forget
  Show me and I will remember
  Teach me and I will learn

  -----Original Message-----
  From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 12 February 2004 6:43 AM
  To: CF-Talk
  Subject: RE: Prevent Refresh

  I think you need to take a 2 part strategy

  1) set up some onClick so the form button disables itself upon
  submission. That way it does not allow a resubmission.

  2) set up the post-form-processing page so that it redirects
  (CFLOCATION) the user to confirmation page which they can refresh all
  they like

  Clicking back, will never get the interim form-submitted page, so you
  should be safe.
  -Dov

    _____

  From: Ryan Kime [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 11, 2004 3:33 PM
  To: CF-Talk
  Subject: RE: Prevent Refresh

  You could wrap your code around a CFIF statement that checks to
  see if the
  cgi.http_referer does not equal "" or the current page. Then it
  would run
  the refresh but not the email code.

  -----Original Message-----
  From: Robert Orlini [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 11, 2004 1:31 PM
  To: CF-Talk
  Subject: OT: Prevent Refresh

  Is there any way to disable the Refresh button or option or
  prevent a user
  from refreshing a page? It's causing some problems with our CF
  coding and
  sending out multiple emails. Is there a way in _javascript_ or CF?

  Robert O.
  HWW
    _____
    _____
    _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to