日期:2014-05-16 浏览次数:20846 次
编号:<input type="text" name="id" onblur="getname(this.value)"/> 姓名:<input type="text" name="names" id="names"/> <script type="text/javascript" src="http://www.lvzhou168.com/js/jquery.js"></script> <script type="text/javascript"> function getname(v){ if(v!='') $.ajax({ url:'xxxxxxx.asp' ,data:'id='+v ,cache:false ,success:function(data){ $('#names').val(data); } ,error:function(xhr){alert('ASP页面有错误!\n'+xhr.responseText)} }); } </script>
------解决方案--------------------
<%@ language="Vbscript" codepage="65001" %> <%response.CharSet="utf-8":session.CodePage=65001 %>