Trying to reload/refresh page with a button
Hi,
I'm trying to reload a page with a button. I can't seem to get the button to do anything. The current window just needs to be reloaded. Similar to hitting refresh on the browser.
Thanks in advance.
<script src='http://pastie.org/1041928.js'></script>
3 Answers
-
Accepted Answer
Depends how is your window built, what it's made of. For table view, do as Richie said, check the table_view_refresh.js. Hints :
Clear table view data :
tableview.setData([]);
Set new data :
tableview.setData(newDataArray);
-
Hi
I havnt actually got to refresh in my app yet. So I can't give you an example I have tried
But… Have you looked at the kitchen sink example/table_view_refresh.js
Which may give you an idea on how to do it
-
I will take a look thanks. Anyone else doing this too?