Page 1 of 1

Prevent page from refreshing

Posted: Sun Dec 01, 2013 3:58 am
by bahar.wadia

On the home page of my app. I allow users to search for items, which results in a list of items that meet the search criteria. Just like a google search. This works well.

Next, I want the user to be able to click on the item, which takes them to a new page and displays the item details. This also works well.

From the details page, I want the user to be able to hit the back button and return to the home page with the list of items that had originally met the search criteria. In other words, I don't want to loose the contents of the original search result.

How can I do this? Is there an easy way to do this ? What may I being wrong?


Prevent page from refreshing

Posted: Sun Dec 01, 2013 6:26 am
by Illya Stepanov

Hi bahar.wadia,

You can use localStorage to save the states of choices on the pages, and after returning to the home page fill fields from saved local variables.


Prevent page from refreshing

Posted: Sun Dec 01, 2013 5:37 pm
by bahar.wadia

Thanks you for the reply. I am assuming there is no other cleaner way of achieving this, correct ?


Prevent page from refreshing

Posted: Mon Dec 02, 2013 5:33 am
by Alena Prykhodko

Yes, this one is the most appropriate.