Saving and retrieving XML and JSON using JavaScript -


i'm having trouble understanding how read , write xml , json data using javascript. can provide me detailed explanation examples.

<html>  <head>  <script type="text/javascript" src="/jquery/jquery.js"></script>  <script type="text/javascript">  $(document).ready(function(){    $("#b01").click(function(){    htmlobj=$.ajax({url:"/jquery/test1.txt",async:false});    $("#mydiv").html(htmlobj.responsetext);    });  });  </script>  </head>  <body>    <div id="mydiv"><h2>this demo</h2></div>  <button id="b01" type="button">change</button>    </body>  </html>

you can use ajax.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -