To give a scene: When the user login success, the browser will sometimes ask whether you remember the password, when you remember the password the next time you log in, the label will be automatically populated, but this will cause the style is not unified, the solution is as follows:{ border: 1px solid Green; -webkit-text-fill-color: Green; -webkit-box-shadow: 0 0 0px 1000px #000 inset; transition: background-color 5000s ease-in-out 0s;}CSS Modify Au
In order to strengthen the skill of MVC, strengthen the practice is the thing. Insus.net this time to realize the AutoComplete function of the text box.Create a table in data [PinYin]:Insert some data:INSERT into [dbo]. [PinYin] ([Word]) VALUES (' A '), (' Ai '), (' an '), (' Ang '), (' AO '), (' Ba '), (' Bai '), (' Ban '), (' Bei '), (' Ben '), (' Bi '), (' Bian '), (' Bie '), (' Bin ' ), (' Bing '), (' Ca '), (' Cai '), (' Cang '), (' Cao '), (' CE
as follows:
Like new capxous. AutoComplete ("wiki", function () {
Return "autocomplete3.asp?typing=" + Escape (this.text.value);
});
Then in the ASP to accept the value
Typing =trim (request.querystring ("typing"))
and then query
Set rs=conn.execute ("Select Ygbh,dw,ygxm from Wuhen_t_yg WHERE ygxm like '%" typing "% ' ORDER by YGBH DESC")
The problem is this, the query in the Address column input value can be received,
. Commonplace---XMLHttpRequest
Code
Copy Code code as follows:
var xmlHttp;
function Createxmlhttprequest ()
{
if (window. Actievexobject)
{
Xmlhttp=new actievexobject ("Microsoft.XMLHTTP");
}
else if (window. XMLHttpRequest)
{
Xmlhttp=new XMLHttpRequest ();
}
}
If you do not use jquery handwriting JavaScript, you should change it to a XMLHttpRequest object pool, which is not written.
-Trigger AutoComplete
Cjuiautocomplete can automatically prompt the user to enter text according to the first few characters entered by the user when entering. It encapsulates the JUI AutoComplete plug-in.
The basic usage is as follows
Automatically prompts the data source by configuring the Source property to complete, the actual application can be read through the database, files and so on. For simplicity, this example uses an array definition in Sitecontroller.
P
HTML Tags: input ID = "Province" name = "Province" > Li > input ID = "City" name = "City" type= "text">li>JS files that need to be introduced:src= "Js/jquery.min.js">script> src= "Js/jquery-ui.min.js">script> JavaScript code on the pageScript> varURL= ""; varlastxhr; $("#province"). AutoComplete ({minLength:1, Source:function(Request, response) {var Term=Request.term; LASTXHR=$.getjson (URL+"? beanname=provincedata", request,function(data,
AutoComplete-Automatic completion of plug-ins (2)
1) AutoSuggest can turn any regular text input box into a label to automatically complete the input box. It will dynamically create all the HTML elements required by the function. With AutoSuggest, you do not need to add any additional HTML code.
Home:
Http://code.drewwilson.com/entry/autosuggest-jquery-plugin
Update Date:
2010-
During project creation, you sometimes need to provide users with certain help information to prompt user operations. Of course, the suggest function is essential, but if you develop it yourself, it is time-consuming and time-consuming. Here we will use JQuery's autocomplete directly. The experiment proves that the result is very good. The front-end code is as follows:
The Code is as follows:
JQuery's Automatic completion Function
The jquery-based text box and autocomplete are used in combination with the sample code. If you need this code, you can refer to the JS Script Reference.
The Code is as follows:
In addition, the implementation principle of AutoComplete auto-completion is mainly implemented in the asp.net background. Considering the performance, it is best to generate xml and merge it into the cache. I. Brief Introduction
Yesterday, a support Colleague helped her customer achieve the following results (automatically completed ):
I used to call the real estate dictionary when I searched for the house:
This is a small feature and a large feat
In addition, the implementation principle of AutoComplete auto-completion is mainly implemented in the asp.net background. Considering the performance, it is best to generate xml and merge it into the cache. I. Brief Introduction
Yesterday, a support Colleague helped her customer achieve the following results (automatically completed ):
I used to call the real estate dictionary when I searched for the house:
This is a small feature and a large feat
Here we need to implement the AutoComplete function of AjaxControlTookit. This function is used in common page searches and is very simple to use. However, if you want to expand it, you have to find another solution. Here we will only introduce how the AutoCompleteExtender control is implemented.
Let's take a look:
Page:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Author: TargetControlID = "Text
Android AutoCompleteTextView supports mobile phone number formatting, with the history clearing operation, autocomplete clearing data
One of my friends has encountered this problem: AutoCompleteTextView Enables automatic filling. At the same time, you must have the mobile phone Formatting Function. The last row in the drop-down list has a history clearing function. However, you can click "Clear history" to add the text to AutoCompleteTextView. This ef
In recent days, I have consistently looked at JSON. The so-called JSON, in fact, is also implemented by some JS functions at the underlying layer. Through it, I mainly perform asynchronous submission, transfer data at the underlying layer, and ignore the new page type. Of course, there are also many people who use ajax to implement some dynamic web pages. There are too many online materials. If you want to study it, hurry up, the following is an example of an automatic prompt in struts1 Based on
, the user can directly browse the doc information.Synonyms: As with queries, synonyms also apply, setting the corresponding filter.Ignore stop words: Note that the default Index_analyzer in the mapping of completion suggest is simple analyzer rather than standard analyzer. Why is it? Or the question of stopping words. For the "Charles Hotel", when the user enters "Charles", the correct inscription should be given, but this is not the case, because the Stop token filter removes the stop word, bu
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.