Biteaa Me
Posts: 0
Joined: Mon Aug 04, 2014 9:25 am

PageShow refresh issue

Displaying data PageShow event.
I have created some webservices to to get data and when I go from one page to the next one, I invoke the webservice in pageShow event and bind the data in to display fields(ie. input boxes, checkboxes etc.) However, the data is displayed after i go into this page because and because of that, I could see the data from a previous time getting deleted and being replaced.
Does any one know a solution for this ? I feel its a bit messy with this way.
cheers

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

PageShow refresh issue

Hello Biteaa,

Could you please clarify, do you need them to always remain on this page, or in every visit to it replace this data with new one?

Biteaa Me
Posts: 0
Joined: Mon Aug 04, 2014 9:25 am

PageShow refresh issue

Hi Evgene,
Yes, I need to replace the data with new data, for example there is a screen, and it has some textboxes, and they get filled when i called the web service on pageshow, then i leave the page to another page, but the stuff in the previous page text box are already there. so when I go back to the same page with another request, that textboxes are already pre-filled. I think this happens because the pageshow event comes in to play after the page is fully visible. so there is a small second where I can see the previous screens data, then itll be replaced.
It just feels a little clunky, I was wondering if there is a more elegant way of showing data like clearing the data before the page loads...
cheers

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

PageShow refresh issue

Biteaa,

Sorry for delay. Could you please check, is in your application's settings selected "Render all pages in one HTML file (jQuery Mobile multi-page template)"? Could you try set "Use full screen refresh" when navigating to the page. If this does not help, you should either manually clear the input field, or hide them before the download is complete data

Return to “Issues”