Simon Willison’s Weblog

Entries tagged ajax, jquery, webdevelopment in Feb

Filters: Type: entry × Month: Feb × ajax × jquery × webdevelopment ×

How do you change page content and URL without reloading the whole page?

This can only be done using JavaScript. You use XMLHttpRequest to pull in new information from the server (also known as Ajax—most people use a JavaScript library such as jQuery to handle this) and then use the HTML5 history API, in particular the pushState method, to update the URL.

[... 133 words]