Loading ...
Sorry, an error occurred while loading the content.

44540Dialog: Submit vs Upload and Hitting Enter

Expand Messages
  • Hans Zaunere
    Jan 31, 2009

      It appears that there is different behavior between pressing enter and
      clicking submit for a Dialog based form. It's most notable when there's a
      file input.

      For example, when a user actually clicks Submit, both the success and upload
      callbacks are called. When a user simple hits enter, only the upload
      callback is called.

      Is there a way to change this behavior so that it's more reliable. Or at a
      minimum a way to know if the success callback has fired, so that code in
      both places isn't executed twice.


      Hans Zaunere / Managing Member / New York PHP
      www.nyphp.org / www.nyphp.com
    • Show all 3 messages in this topic