bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Prevent page from refreshing

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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Prevent page from refreshing

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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Prevent page from refreshing

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Prevent page from refreshing

Yes, this one is the most appropriate.

Return to “Issues”