Javascript encapsulation source code for AJAX autocompletion function [Chinese supported] Page 1/2

Source: Internet
Author: User

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 =" http://www.bkjia.com/uploads/allimg/131016/2302192W5-0.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 =" http://www.bkjia.com/uploads/allimg/131016/2302191B8-1.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 =" http://www.bkjia.com/uploads/allimg/131016/2302191222-2.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 =" http://www.bkjia.com/uploads/allimg/131016/2302192402-3.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



Source code download


There is a problem, which can be solved by experts, that is, they cannot support Chinese and do not know where to change it! Expectation




Complete demonstration of ASP + AJAX autocompant ASP

Download ASP + AJAX source code

Page turning and other scaling functions are being improved
Copy codeThe Code is as follows:
For example, new CAPXOUS. AutoComplete ("wiki", function (){
Return "autocomplete3.asp? Typing = "+ escape (this. text. value );
});

Accept the value in asp.
Typing = trim (Request. QueryString ("typing "))
Then Query
Set Rs = Conn. ExeCute ("select ygbh, DW, ygxm from wuhen_t_yg WHERE ygxm LIKE '%" & typing & "% 'order BY ygbh DESC ")

This is the problem. The entered values in the address bar can be retrieved, but ajax cannot return values #

Copy codeThe Code is as follows:
<Script language = "javascript" runat = "server">
Function decode (str ){
Return unescape (str );
}
</Script>
Typing = decode (trim (Request. QueryString ("typing ")))

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.