<html> <head> <script> function showUser(str,st1) { if (str=="" AND st1=="") { document.getElementById("txtHint").innerHTML=""; return; } 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("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","http://www.tndte.com/Result/Default2.aspx?Value="+str"regul="+st,true); xmlhttp.send(); } </script> </head> <body> <center> <form> Enter the Register No: <input type="text" name="reg"/><br /><br /> <input type="radio" value="K" name="s1" >K/L/R/O/N-scheme <input type="radio" value="J" name="s1" >J/C/D/G-scheme <br /><br /> <input type="submit" value="View" name="submit" id="valuebtn" onClick="oload()" /> </form> </center> <br> <div id="txtHint"><b>Person info will be listed here.</b></div> </body> <script type="text/javascript"> function oload(){ document.getElementById('valuebtn').onclick = function() { var s = document.getElementById('reg').value; var ss = document.getElementById('s1').value; showUser(s,ss); } } </script> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)