Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Can I "reset" my application. [rpgrammatically.
Sun, Aug 16 2015 5:34 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Can I (and if so, how do I) programmatically force a reload of my application? I know I can press F5 (cmd+R, whatever) but can I get the user to click a button/link/whatever to do it?

Can't find anything in the docs.
Sun, Aug 16 2015 6:20 AMPermanent Link

Uli Becker

> Can I (and if so, how do I) programmatically force a reload of my application? I know I can press F5 (cmd+R, whatever) but can I get the user to click a button/link/whatever to do it?

How about:
window.location.href := 'MyURL';

Uli
Sun, Aug 16 2015 6:29 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Hi Uii -
sorry that was a poorly written question, rushed out of the fingers before the brain had caught up. What I really meant to say on the end of that was -

"I've tried window.location.href:='/app'; but it doesn't understand me. How do I call standard JS DOM functions through EWB. Is there a wrapper or a way to access them directly?"

However, I hadn't added WebDOM to the include list. Now that I have, it works fine.

Thanks.
Image