Today, the children wrote a program, garbled, will solve the process to share for ease of instruction, the environment is simplified, vs. net2003, jquery-1.3.2.js, webservice call
Simple requests, simple responses, but garbled
Why?
The reason
On csdn, someone asked getElementsByTagName and selectNodes who are faster. This is really not studied. So I tested it:
The Code is as follows:
Var stringToDom = function (text ){Var doc;If (window. ActiveXObject ){Doc = new ActiveXObject ("MSXML2
This is a simple and usable drag-and-drop code. You can use both the mouse and keyboard. When the # link on the box in the example is in the active State (whether using a tab and then clicking enter or clicking with the mouse), this element can be
Js does not directly support method overloading similar to c #, so it can only be solved in disguise, indicating the Code: (using the built-in attribute arguments)
The Code is as follows:
Var f1 = function (p1, p2, p3 ){Switch (arguments. length )
Operate the jquery code in the drop-down list box to help you learn jquery's friends.
Option1 Option2 Option3 Option4
1. Get the jQuery object
Obj = $ ('# select1 ');
2. Get the length of Options
Len = $ ('# select1 option'). length
3.
In this chapter, I will provide code to find the element location on the page. It can help you find the real location. If you change the size of the window and run the code again, it will also tell you the new location. Offset
The offsetTop and
This is also summarized at will, Referencing some js framework jquery methods.
Locking the pop-up layer based on jqueryThis is also summarized at will, Referencing some js framework jquery methods.
For more information about how to use p to hide
Today, I plan to use the transparency settings of some elements to achieve the fade-out effect. However, some Browsers Do not support transparency settings for certain elements. In addition, table transparency cannot be set in almost all browsers.
Document mode is rarely used in development. The most common thing is that when the page width is high, for example, the document width is high, and the visible area width is high. The rendering of the box model by IE is very different in Standards
Obtain the two functions of the current page height and width.
The Code is as follows:
// ======= Jquery framework to be referenced ====== //// Return the current page heightFunction pageHeight (){If ($. browser. msie ){Return document.
Use the layer to implement the select title prompt attribute
The Code is as follows:
ScriptFunction opts (selectObj ){Var optDivs = document. createElement ("p ");Var objTable = document. createElement ("table ");Var objTbody = document.
This chapter introduces the range object. With this object, you can select any part of the HTML document and perform some operations based on the selected information. The most common range object is selected by the user. Although we will explain
Pay attention to json returned by ajax operations in js!
The Code is as follows:
Var result = unescape (xmlhttp. responseText );Var j = eval ("(" + result + ")");
Var j = eval (result );
JSON (JavaScript Object Notation) is a simple data
JQueryplugin: Validation is a powerful client verification plug-in. It has many common verification methods and supports extension of custom verification methods and custom language packs. Official Address:
Sometimes, the navigation menu text of a website cannot provide enough information to express the content of the current menu button. The general solution is to use the prompt message ToolTip, the flow navigation menu FluidNavigation introduced in
This chapter details the method of Form Error prompts, which is much better than the method that uses mostly warning boxes. In my opinion, the warning box is only used when the browser does not support other methods for displaying error messages.
Sometimes you want to see the default style of the document. For example, if the width of a paragraph is 50%, you want to know the exact pixel of the paragraph in the user's browser. In addition, you may want to know the specific content of the
The DocumentObjectModelDOM is used to describe the relationship between the input boxes, images, paragraphs, and other elements on the HTML page and the top-level structured document. Use appropriate methods to select these elements so that we can
JavaScript learning skills. For more information, see.
Convert to Boolean type All values in JavaScript can be implicitly converted to the Boolean type, for example: 0 == false; // true 1 == true; // true '' == false // true null == false /
JQuery basics -- process form elements 1. Obtain the value of the input class: $ ("input"). val ();
2. Get the textarea class value: $ ("textarea"). val ();
3. Obtain the value of the select class: $ ("select"). val ();
When the form contains
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