Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread DOM Refresh?
Mon, Sep 19 2016 7:02 AMPermanent 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 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Is it possible to get the DOM refreshed in the middle of some action? >>

I wish. Wink 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 AMPermanent 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
Image