<pre lang="Javascript"> <script type="text/javascript"> function favourite() { var xmlhttp; var js_aid = "<?php echo $aid; ?>"; var js_user = "<?php echo $user; ?>"; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; document.getElementById("mybutton").style.display ='none'; } } xmlhttp.open("GET","http://test.xyz.php?aid="+ js_aid + "&user=" + js_user,true); xmlhttp.send(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)