一个AJAX自动完成功能的js封装源码[支持中文]第1/2页

时间:2021-05-25

Screenshots screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/upload/2007228153419399.gif');}" alt="" src="/upload/2007228153419399.gif" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/upload/2007228153423310.gif');}" alt="" src="/upload/2007228153423310.gif" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>PaginationInternationalization screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/upload/2007228153426498.gif');}" alt="" src="/upload/2007228153426498.gif" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('/upload/2007228153427643.gif');}" alt="" src="/upload/2007228153427643.gif" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>Rich formatText selection



源码下载


有个问题,等高手解决,就是怎么搞都不能支持中文,不知道要改哪个地方!期待




ASP+AJAX autocompant ASP完整演示

ASP+AJAX源码下载

翻页和其他扩展功能正在完善
复制代码 代码如下:
比如newCAPXOUS.AutoComplete("wiki",function(){
return"autocomplete3.asp?typing="+escape(this.text.value);
});

那么在asp要接受值
typing=trim(Request.QueryString("typing"))
然后查询
SetRs=Conn.ExeCute("SELECTYGBH,DW,YGXMFROMwuhen_t_ygWHEREygxmLIKE'%"&typing&"%'ORDERBYygbhDESC")

问题出在这,查询在地址栏目中输入值能有接过,但是ajax却不能返回值#

复制代码 代码如下:
<scriptlanguage="javascript"runat="server">
functiondecode(str){
returnunescape(str);
}
</script>
typing=decode(trim(Request.QueryString("typing")))

12下一页阅读全文

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章