Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 23
    Please note that whilst a lot of the answers here suggest listening for readystatechange, modern browsers now support the load, abort, progress and error events for XMLHttpRequest (you'll probably only care about load though). Commented Mar 31, 2015 at 16:27
  • 9
    youmightnotneedjquery.com a lot of pure js examples incl. ajax for ie8+, ie9+ and ie10+ Commented May 23, 2016 at 18:12
  • 2
    w3schools have a nice step by step introduction into ajax without jquery: w3schools.com/js/js_ajax_intro.asp Commented Sep 29, 2017 at 11:31
  • You can also use EHTML: github.com/Guseyn/EHTML Use e-json element for fetching json and mapping it to the html element Commented Nov 20, 2019 at 11:22