一个AJAX自动完成功能的js封装源码[支持中文]第
网络编程 2021-07-05 10:36www.168986.cn编程入门
Screenshots
有个问题,等高手解决,就是怎么搞都不能支持中文,不知道要改哪个地方!期待
翻页和其他扩展功能正在完善
比如 new CAPXOUS.AutoComplete("wiki", function() {
return "aulete3.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")))
screen.width0.7) {this.resized=true; this.width=screen.width0.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.width0.7) {this.resized=true; this.width=screen.width0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0> | screen.width0.7) {this.resized=true; this.width=screen.width0.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.width0.7) {this.resized=true; this.width=screen.width0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0> |
Pagination | Internationalization |
screen.width0.7) {this.resized=true; this.width=screen.width0.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.width0.7) {this.resized=true; this.width=screen.width0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0> | screen.width0.7) {this.resized=true; this.width=screen.width0.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.width0.7) {this.resized=true; this.width=screen.width0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0> |
Rich format | Text selection |
有个问题,等高手解决,就是怎么搞都不能支持中文,不知道要改哪个地方!期待
翻页和其他扩展功能正在完善
代码如下:
比如 new CAPXOUS.AutoComplete("wiki", function() {
return "aulete3.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")))
1
上一篇:Ajax读取XML实现动态下拉导航
下一篇:AjaxUI:滑动条
编程语言
- 如何快速学会编程 如何快速学会ug编程
- 免费学编程的app 推荐12个免费学编程的好网站
- 电脑怎么编程:电脑怎么编程网咯游戏菜单图标
- 如何写代码新手教学 如何写代码新手教学手机
- 基础编程入门教程视频 基础编程入门教程视频华
- 编程演示:编程演示浦丰投针过程
- 乐高编程加盟 乐高积木编程加盟
- 跟我学plc编程 plc编程自学入门视频教程
- ug编程成航林总 ug编程实战视频
- 孩子学编程的好处和坏处
- 初学者学编程该从哪里开始 新手学编程从哪里入
- 慢走丝编程 慢走丝编程难学吗
- 国内十强少儿编程机构 中国少儿编程机构十强有
- 成人计算机速成培训班 成人计算机速成培训班办
- 孩子学编程网上课程哪家好 儿童学编程比较好的
- 代码编程教学入门软件 代码编程教程