Page 1 of 1

How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 6:06 am
by Himanshu

Hello Team,

In my Page1, I have some input fields and based on these fields, getting some list result on the same page. In each list record I have one button name as "More Info" and click on it I move to the next page name as "Page2". And here on "Page2" I have on "Back" button to return "Page1".

My requirement is to "get the previous page with all values (like - input values, and list result) as it is. But I am not getting it. when i come to "Page1", I get this page as a new page always.

I tried all these code on "Back" button -

JavaScript-

Appery.navigateTo("Page1", false);
Appery.navigateTo("Page1", {reloadPage: false});
history.back();

And even I tried with Action as "NavigateToPage" without selecting "Use full screen refresh".

Please suggest me, what I can do more.


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 7:13 am
by Kateryna Grynko

Hi Himanshu,

Did you tick "Render all pages in one HTML file" in App settings? All the data should be saved. Do you navigate only to one page after executing a service? You could save data in localStorage and then display it.


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 8:17 am
by Himanshu

Yes. it worked well with tick on "Render all pages in one HTML file".
Can you please explain me whatever the use of this option?

Thanks.


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 9:37 am
by Kateryna Grynko

Hi Himanshu,

Check here please:
http://demos.jquerymobile.com/1.1.1/d...


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 11:33 am
by Himanshu

Hi Katya,
Sorry to say but I can't use your suggestion "Render all pages in one HTML file". Because when I used this option, my entire application's behavior changed. Like I click on Home-Page image, then for a millisecond it shows Home-Page, but then it returns to previous page.. It is happening with almost all the pages. I don't know whats the reason behind it.
Can you explain it?

Thanks.


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Thu May 29, 2014 12:17 pm
by Kateryna Grynko

Hi Himanshu,

Please post a public link to your app.


How to keep searched data of the page1 when it reloads on Back button from page2.

Posted: Fri Jun 27, 2014 11:02 am
by Kateryna Grynko

Hi Himanshu,

Did you solve it?