Skip to main content
1-Visitor
August 18, 2016
Solved

Web Page Reload

  • August 18, 2016
  • 7 replies
  • 4647 views

Hi, developers!

     Is there anything that can reload the whole web page, just like clicking F5, but not using F5.

     Not the mashup reload function. Thanks!

Lee

Best answer by tcoufal

Hi,

tricky thing

you can use a special mashup which contains a HTML text area set as "read only".

than you can create a thing which has one property type of HTML, put this inside

<A HREF="javascript:history.go(0)">Click to refresh the page</A>

than on that mashup find your thing, call get property values and bind your HTML property to that HTML text widget. Upon load link will be displayed upon click on that link whole page will be refreshed. Or you can set your HTML property to this:

<META HTTP-EQUIV="refresh" CONTENT="15">

than whole page will refresh as soon as your mashup displays that HTML text area widget with your property in..


You can test it and give me some feedback, I myself have not tested it.

Hope that helps a bit.  

 

7 replies

tcoufal1-VisitorAnswer
1-Visitor
August 18, 2016

Hi,

tricky thing

you can use a special mashup which contains a HTML text area set as "read only".

than you can create a thing which has one property type of HTML, put this inside

<A HREF="javascript:history.go(0)">Click to refresh the page</A>

than on that mashup find your thing, call get property values and bind your HTML property to that HTML text widget. Upon load link will be displayed upon click on that link whole page will be refreshed. Or you can set your HTML property to this:

<META HTTP-EQUIV="refresh" CONTENT="15">

than whole page will refresh as soon as your mashup displays that HTML text area widget with your property in..


You can test it and give me some feedback, I myself have not tested it.

Hope that helps a bit.  

 

1-Visitor
August 18, 2016

I can confirm,

it works quite nicely,

you can use that second statement make CONTENT="0" and put a button on that mashup a bind its clicked event to GetPropertyValues service (which result is bound to HTML Text widget set up as read only). Once button is clicked page refreshes immidiately.

Be careful though with that.

lwei1-VisitorAuthor
1-Visitor
August 19, 2016

Hi, Tomas!

     Thanks for your comment! I've tried out the method you said, but it still can't work.

1471582464824.jpg

1471582451672.jpg

1471582496001.jpg

I followed the steps as you said, but it still can't refresh the page.

Is there anything that I missed?

Sincerely,

Lee