jQuery Ajax load Method
home
Run
screen_rotation
fullscreen
cloud_download
<!DOCTYPE html> <html> <head> <title>jQuery Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $( "#ajaxExample" ).on( "click", function(event) { var uri = 'http://runtest.tutorialsplane.com/'; $("#myDiv").load(uri+"test.html",function(response,status,xhr){ alert("Status = "+xhr.statusText+" Response = "+xhr.responseText); }); }); }); </script> <style> .myClass{ border:4px solid red; background:yellow; width:400px; height:300px; padding:10px; } </style> </head> <body> <h4 ><a href="javascript:void(0);" id="ajaxExample">Click Load Data from Server Using Ajax </a></h4> <div id="myDiv" > </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>jQuery Demo example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $( "#ajaxExample" ).on( "click", function(event) { var uri = 'http://runtest.tutorialsplane.com/'; $("#myDiv").load(uri+"test.html",function(response,status,xhr){ alert("Status = "+xhr.statusText+" Response = "+xhr.responseText); }); }); }); </script> <style> .myClass{ border:4px solid red; background:yellow; width:400px; height:300px; padding:10px; } </style> </head> <body> <h4 ><a href="javascript:void(0);" id="ajaxExample">Click Load Data from Server Using Ajax </a></h4> <div id="myDiv" > </div> </body> </html>
Copyrights@tutorialsplane.com