Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
DOM Refresh? |
Mon, Sep 19 2016 7:02 AM | Permanent Link |
Matthew Jones | Is it possible to get the DOM refreshed in the middle of some action?
I have a form that shows a modal form that shows a modal form. The user clicks OK to enact something, and that something takes 5 seconds, then updates items in the display. The browser is showing the form still all that time. It would be quite nice to be able to hide the forms, and then show a spinner, and then end with the update. The easiest way would be to do a refresh in the OK code. I suspect though that I need an Async to do the completion part. Hmmm. Any suggestions welcome. -- Matthew Jones |
Mon, Sep 19 2016 7:24 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Is it possible to get the DOM refreshed in the middle of some action? >> I wish. No, you'll have to resort to queuing things up in the message queue via the "async " call modifier: async ShowMyForm async ShowMyOtherForm Tim Young Elevate Software www.elevatesoft.com |
Mon, Sep 19 2016 7:30 AM | Permanent Link |
Matthew Jones | Matthew Jones wrote:
> Is it possible to get the DOM refreshed in the middle of some action? > > I have a form that shows a modal form that shows a modal form. The > user clicks OK to enact something, and that something takes 5 > seconds, then updates items in the display. The browser is showing > the form still all that time. It would be quite nice to be able to > hide the forms, and then show a spinner, and then end with the > update. The easiest way would be to do a refresh in the OK code. I > suspect though that I need an Async to do the completion part. Hmmm. > Any suggestions welcome. Async seems to do the required update, but would like to know if there is another way. The other issue then is that a GIF spinner stops animating (or perhaps doesn't start) during the completion part. Anyone know why this might be? It is all set up but invisible. I then make it visible, do the async, and it sits there doing nothing, and then the code completes and hides it. It animates if I start the form with it visible (and before anything of the above code is happening, so I know the GIF can animate). -- Matthew Jones |
This web page was last updated on Friday, April 19, 2024 at 07:09 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |