function clickButton() { var s = document.createElement("script");
s.src = "jsonp_demo_db.php?callback=myDisplayFunction";
document.body.appendChild(s);
}
Liked By
Write Answer
JSONP
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
03-Jul-2018thanks for this
Prakash nidhi Verma
03-Jul-2018JSONP :
JSONP means JSON with Padding.
JSONP does not use the XMLHttpRequest object.
JSONP uses the <script> tag instead.
Requesting an external script from another domain does not have this problem.
JSONP uses this advantage, and request files using the script tag instead of the XMLHttpRequest object.
Syntax:
Server File :
Callback Function: