Preserving Ajax page state with URL hash -
On my site there is a page with two sets of tabs, each tab is linked to AJAX but it has proper href The matter is not Javascript enabled. I am using a plugin like implementing an AJAX 'back-button' solution, such as a jQuery address.
My problem with this problem / confusion is that the default content of the first page of Javascript has still been loaded, parsing the hash and the chance to load the correct content, if I initially hide the content, Non-JavaScript users will never see anything. If I do not initially hide the content, then the user will see the wrong page before it gets updated (in addition to loading the wrong tab, except the overhead and then the right tab).
If you use a hash , You'll always have the wrong content to avoid this, you have to use a server-side solution with the HTML5 History API.
You can use:
and present the tab with something like the on the server side (if $ _GET ['tab'] === '2 ') / / Render2
Comments
Post a Comment