Simon Willison’s Weblog

Entries tagged ajax, javascript in Feb

Filters: Type: entry × Month: Feb × ajax × javascript ×


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]

Types

Years

Tags