Skip to content Skip to sidebar Skip to footer

Hash Tag, Query String, And Ajaxified Search Results

I have a search form that automatically sends POST data my web application whenever something in the form changes. The web application (written in PHP/CodeIgniter) accepts POST or

Solution 1:

HTML5 browsers support History pushState which can update the browser's url without refreshing the page.

var stateObj = { foo: "bar" };
history.pushState(stateObj, "page 2", "bar.html");

You can add support for browsers that do not support it with history.js

Post a Comment for "Hash Tag, Query String, And Ajaxified Search Results"