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

disable container > dialog submit+close button

Expand Messages
  • dabitsu
    hi all i ve just started playing with the container.dialog widget, and am using it for some script i am developing basically, user brings up the dialog, and
    Message 1 of 1 , Jul 26, 2006
    • 0 Attachment
      hi all

      i've just started playing with the container.dialog widget, and am
      using it for some script i am developing

      basically, user brings up the dialog, and enters a url into the text
      field (the url is for an image)
      when they hit submit, an xmlhttprequest is made, which checks the
      validity of the url, and starts downloading the file if it is valid
      and once a successful/failed response from the download is returned

      i submit the form/dialog, and go back to the main page

      the problem i am having, is that i want all the buttons on the dialog
      to be disabled while the file is downloading

      i'm not a real javascript junkie, so i am not sure how to do this

      i am basically just re-jigging the code from the dialog sample to suit
      my needs
      and i know this is the submit button in the dialog
      YAHOO.example.container.dlg.cfg.queueProperty("buttons", [ {
      text:"Submit", handler:handleSubmit } ]);

      but how do i disable that?
      and how do i disable the close dialog button (i don't even know where
      the code for that is, prolly in the dialog somewhere)?

      thanks
      dave
    Your message has been successfully submitted and would be delivered to recipients shortly.