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

Re: Build custom confirm() with SimpleDialog

Expand Messages
  • Xzibit
    Any solution for this? We have the same scenario. I want a return value of the simpledialog. Please let me know if you have a solution for this. Thanks.
    Message 1 of 5 , Mar 4, 2008
    • 0 Attachment
      Any solution for this? We have the same scenario. I want a return
      value of the simpledialog. Please let me know if you have a solution
      for this. Thanks.

      --- In ydn-javascript@yahoogroups.com, "mhaertl73" <ydn@...> wrote:
      >
      > --- In ydn-javascript@yahoogroups.com, "bretlevy" <bret@> wrote:
      > >
      > >
      > > You have to do it in "steps". I create a master set of functions in
      > > a js file that handle popus as follows:
      >
      > Thanks for your answer but i guess it doesn't solve my problem. I
      > still need a separate handler for each confirmation.
      >
      > What i need is an exact replacement for confirm() that returns true or
      > false. I have many of these in my code:
      >
      > if (!hasChanged || confirm("Are you sure you want to quit?")) {
      > ...
      > }
      >
      > I want to replace the confirm dialog with a nicer SimpleDialog. But i
      > don't want to write a separate handler for each confirmation.
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.