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

Re: [ydn-javascript] Synchronous Dialog?

Expand Messages
  • Jeremy Coates
    ... perhaps something with the validate function e.g.: myDialog.validate = function() { var data = this.getData(); if (data.name == ) { alert( Please enter
    Message 1 of 4 , Oct 9, 2007
    • 0 Attachment
      Steve wrote:
      > Does anyone have any ideas of a workaround to allow me to get a Dialog
      > to show in a synchonous way (like a confirm dialog)? I am building an
      > on the fly summary page which I want the user to confirm prior to
      > submission and it appears that the dialog only works asynchonously
      > making this nearly impossible.
      >

      perhaps something with the validate function e.g.:

      myDialog.validate = function() {

      var data = this.getData();

      if (data.name == '') {
      alert('Please enter your name');
      return false;
      }

      return confirm('Are you sure?');
      }

      HTH,
      Jeremy
    Your message has been successfully submitted and would be delivered to recipients shortly.