Jump to content

lse123

Members
  • Posts

    59
  • Joined

  • Last visited

Posts posted by lse123

  1. At http://www.w3schools.com/jquery/jquery_ajax.aspthere are some jQuery ajax examples, when want to get other server url's html code page (and preferred only div text with id=("article_main")), well below code failed, is only for native urls? what to use in this case or in case of an otherserver/page.html? txt1=xmlhttp.responseText;txt=txt1.getElementsById("article_main");

    <html><head><script type="text/javascript" src="jquery.js"></script><script type="text/javascript">$(document).ready(function(){  $("button").click(function(){  alert("pressed");    $("#gl").load("http://www.yyyy.com/cyprus-property/taxes-fees.html");    });  });//});</script></head><body><p>Artists</p><div id="gl"></div><button>Get html info</button></body></html>

×
×
  • Create New...