Skip to main content

Timeline for How to get to previous ajax request

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Dec 14, 2014 at 20:35 vote accept ummahusla
Dec 14, 2014 at 20:35 history bounty ended ummahusla
Dec 9, 2014 at 12:54 history edited user3589536 CC BY-SA 3.0
add plunkr
Dec 9, 2014 at 12:07 comment added ummahusla After asking this questions for the couple of days I was doing quite comprehensive research and tried to find a solution to create a back button. And I found a logical solution that first of all I need to map all requests to the browser. Like calling ajax request like this $.get("getApparatus.php?eventid=" + eventid + "&competitionid=" + competitionid, function(data) { //todo }); it will change and save the url like localhost/eventid=413431&competitionid=5454223. So when the link will be saved -> create a back button with back page request.
Dec 9, 2014 at 11:32 comment added user3589536 Just to be sure I understand your code correctly. You would like to go back to a page with a url of say mysite/mypage#getClubsWithVideos+{searchField} and then this page should show the same result on the page as if the user just performed that search?
Dec 9, 2014 at 10:04 comment added ummahusla To be honest, I'm looking for a more comprehensive answer for this question. As far as I could understand to create a back button, I need first off all to name each request to be saved in the browser. I still didn't get the idea how I can do it.
Dec 8, 2014 at 14:14 history answered user3589536 CC BY-SA 3.0