1 Reply Latest reply on Jun 14, 2008 4:48 AM by SujitG

    Disable form while submitting data (via HTTPService)

    TaeWoo_Kim
      And how can I let them know once the data submission has been completed?

      So far, i've been using Alert.show() for both submission + notification of submission completion but it's a little weird b/c the first alert is below the second alert... so the user has to click twice to get back to the form. Not to mention the FIRST alert window is still after data has been submitted...

      Any recommendations?
        • 1. Re: Disable form while submitting data (via HTTPService)
          SujitG Level 2
          Hi,
          I think this is happening because the response from the server is received before the user clicks OK on the Alert showing that the data is being submitted.
          I think of two solutions for this,
          One is set the showBusyCursor property of the HTTPService component to true. So that a busy cursor will be displayed to the user when you call the send() method of the HTTPService, till the response is back from the server.

          Second is to have a custom component displaying message asking the user to wait, which can be popped up using PopupManager when the user clicks on submit and then remove it when the response is back from the server.

          Hope this helps.