luckyb — 2011-02-12T21:52:40-05:00 — #1
Is it possible to alter the query string of the current URL without triggering a page load.
eg. Say you have AJAX pagination, allowing people to change pages without the whole page reloading, just the content of the paginated area. However in case somebody bookmarked the page, they would really only be bookmarking the page 1 - even if they were on page 10.
paul_wilkins — 2011-02-12T23:26:56-05:00 — #2
Yes, you can update the document fragment (the part after the #) without reloading the page by assigning a string to location.hash
luckyb — 2011-02-13T20:37:22-05:00 — #3
Thanks for that. Anyway of modifying what is after the questionmark, without cause page reload?
paul_wilkins — 2011-02-13T20:39:46-05:00 — #4
No. You can modify the document fragment without a page reload, but you cannot modify the querystring without it reloading.
luckyb — 2011-02-13T20:53:25-05:00 — #5
Thanks for your prompt response. Looks like hash is where it has to be.