Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

use the AJAX XMLHttpRequest object in Javascript to send json data to the server

request= new XMLHttpRequest()
request.open("POST", "JSON_Handler.php", true)
request.setRequestHeader("Content-type", "application/json")
request.send(str_json)
[... code to display response ...]
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #AJAX #XMLHttpRequest #object #Javascript #send #json #data #server
ADD COMMENT
Topic
Name
2+9 =