Ajax.docx

  • Uploaded by: Mdv Prasad
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ajax.docx as PDF for free.

More details

  • Words: 139
  • Pages: 2
AJAX https://www.w3schools.com/js/js_ajax_intro.asp https://www.w3schools.com/js/js_ajax_intro.asp AJAX is a developer's dream, because you can:   

Read data from a web server - after the page has loaded Update a web page without reloading the page Send data to a web server - in the background

AJAX Example

Example

Let AJAX change this text

Function loadDoc() function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("demo").innerHTML = this.responseText; } }; xhttp.open("GET", "ajax_info.txt", true); xhttp.send(); } The HTML page contains a
section and a

More Documents from "Mdv Prasad"

Css3.pdf
April 2020 10
Training Material.docx
April 2020 1
Html.docx
April 2020 9
Ajax.docx
April 2020 10
Training.docx
April 2020 2