The text box automatically matches the phone number and name, and the data is the JSON data that is found, which encapsulates all objects (telephone, cellphone, name). Select a phone number,
The code for automatically filling a name is as follows:
$. Ajax ({
URL: '/account/ajaxfinduserphonelist ',
Type: 'Post ',
Cache: false,
Contenttype: "application/JSON ",
Datatype: "JSON ",
Success: function (data ){
$ ("# Input_pair_phone"). AutoComplete
AutoComplete implementation principleIt is mainly used on the input and textarea labels to add mouse events to the keyboard listening events and prompt lists.
For example, the input ID is TXT.
Add a keyboard listening event (keyup) for Input)
VaR mindex =-1; $ ("# TXT"). keyup (function (e) {e = E | window. event; If (E. keycode! = 27 E. keycode! = 38 E. keycode! = 40) {_ mtxt = $ (this ). val (); fqainit (_ mtxt, _ faqdata); // create a list} If (E
AutoComplete-jquery Application
I tried it today. It looks a bit like Google pull-down query.
Index.htm
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
M. aspx
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
M. aspx. CS
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Using system;
Using system. D
The home page of wagang.net requires a ComboBox component (AutoComplete ).
Qwrap contains a: http://dev.qwrap.com/resource/js/wagang/combobox/_examples/ComboBox-Demo.html,
However, this component is developed based on qwrap. However, I only want to reference a component, instead of introducing a qwrap library.
Fortunately, the Helper specification is used for qwrap database stacking. Many methods are static methods and can be independent of the method
1. Several library files are required
Jquerydatabase, jquery-uidatabase, jquery-ui-1.10.3.custom.min.css style table Library (of course, some IMG effects are omitted, you can download them on the official website)
2. Let's look at the prototype effect code:
Background code:
Protected void page_load (Object sender, eventargs e) {} private string _ datasetcachename; ///
For the sake of efficiency, the data is cached (the cache class is not pasted, and the corresponding key values of all cache
Syntax error, insert "]" to complete MemberExpression XXX. js (an error is returned when a Java Web Project imports a Jquery file), jquery. autocomplete
If you want to add a jquery plug-in written by someone else to your website project, the following error occurs: Syntax error, insert "]" to complete MemberExpression XXX. js.
If you change it as required, other problems will still occur.
(The html file associated with jquery cannot be added to the
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
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
Two places were mainly modified:
One, up and down selection and input value synchronization problem.
After entering the keyword, when the Drop-down option appears, the key word input box value is not synchronized with the value of your choice when the keyboard is selected with the upper and lower keys. The plugin was written by a foreigner, and maybe he didn't take that into account.
Second, fixed in Firefox Chinese input, no activation of the problem
Machine Word Length: The number of bits that the CPU can process data at a time, usually related to the number of registers of the CPU.Storage Word Length: The number of bits of binary code stored by a storage unit (storage address) in memory, that is, the number of MDR in memory.Instruction word Length: The number of bits of the computer instruction character.Da
Word-break: Break-all and word-wrap: Break-word can automatically wrap the content of a container such as Div.
Their differences are:
1. Word-break: Break-ALL: for example, if the DIV width is PX, its content will be automatically wrapped in PX. If the end of the line has a long English
Word-wrap:First of all, Word-wrap this CSS property in CSS3 has been renamed to Overflow-wrap, so semantic is also to avoid confusion with word-break;
Reference:
The property was overflow used to specify whether or not the browser could break lines within words in order to PR -wrap Event overflow when a otherwise unbreakable string is too lo
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.