div from 20120423xrpz.html
Click Here to see content from 20120423xrpg.html
HTML CODE USED:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Simple JQuery Ajax Example by Webune.com</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> // This functions starts the ajax to show the output from 20120423xrpg.html // COPYRIGHT: WWW.WEBUNE.COM //http://www.wallpaperama.com/forums/_ayxrzw.html $(document).ready(function() { $(".shared").css({ 'background-color':function() { return '#F00'; } }); $('#SeeAjax').click(function() { $.ajax({ type: "GET", url: "20120423xrpg.html", cache: false, data: "name=John&location=Boston", success: function(Content){ $("#AjaxContent").html(Content); } }); }); }); </script> <style type="text/css"> .shared { background-color: #FF0; height: 50px; width: 200px; } </style> </head> <body> <div class="shared" >div from 20120423xrpz.html</div> <a href="#" id="SeeAjax">Click Here to see content from 20120423xrpg.html</a> <div id="AjaxContent"></div> </body> </html>