• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

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

2022-2-5 17:02| 发布者: 菜鸟教程小白| 查看: 367| 评论: 0|原作者: [db:作者]|来自: [db:来源]

摘要: 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( ...
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>
Pagination Internationalization
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 format Text selection



源码下载


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




ASP+AJAX autocompant ASP完整演示

ASP+AJAX源码下载

翻页和其他扩展功能正在完善
复制代码 代码如下:

比如         new CAPXOUS.AutoComplete("wiki", function() { 
                return "autocomplete3.asp?typing=" + escape(this.text.value); 
                        }); 

那么在asp要接受值 
typing =trim(Request.QueryString("typing")) 
然后查询 
Set Rs=Conn.ExeCute("SELECT YGBH,DW,YGXM FROM wuhen_t_yg WHERE ygxm LIKE '%"&typing&"%' ORDER BY ygbh DESC") 

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

复制代码 代码如下:

<script language="javascript" runat="server"> 
function decode(str) { 
        return unescape(str); 

</script> 
typing =decode(trim(Request.QueryString("typing")))


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap