In fact, we have encountered this kind of error before. We chose to escape it !!
Haha
Step 1: Add 'nt Authority \ Network Service' to the Administrator GroupMy computer --> right-click --> Manage --> local users and groupsSelect "group" -->
Specific situations include:
1. Mutual access between the local domain and subdomain: http://www.aa.com/and book.aa.com
2. Mutual access between the domain and other domains: http://www.aa.com/and http://www.bb.com/ IFRAME
3. Mutual access between
Html
Code
Copy code The Code is as follows:
try
Level 1: -- select --
Level 2: -- select --
Level 3: -- select --
JS Code copy Code the code is as follows: var one = new linkage ('base1', 'base2', data2); one.
Jquery encapsulates some ajax request methods, which are very practical.
For example. AjaxComplete () -- when the request is complete. AjaxError () -- when the request fails. AjaxSend () -- append a function to execute the Ajax request.. AjaxStart ()
The front-end uses AJAX to directly call the back-end method. Some old people post and ask questions. There is nothing to do with an example.
CasMenu. aspx page:
Copy codeThe Code is as follows:
Porschev -- foreground JS (Jquery) calls the
Fortunately, I saw the rising sun after the last day, so I was able to write articles here to get down to the truth. I recently made a project, we need to use a subdomain name to call an existing function under the primary domain name, so we thought
XMLHTTP uses Unicode encoding to upload data, while the general page uses gb2312, which leads to garbled Characters During page display. when the page is obtained, XMLHttp returns UTF-8 encoding, which causes garbled characters in the display.
One
Methods In Ajax engine objects:
Abort () stops the current request
GetAllResponseHeaders () returns the complete headers as a string.
GetResponseHeader ("headerLabel") returns a single header label as a string
Open ("method", "URL" [, asyncFlag [
The effect is as follows:
Copy codeThe Code is as follows:
Ajax Progress Bar
Ajax Progress Bar Example
Launch long-running process:
Copy codeThe Code is as follows: package cn. Ajax. test;Import java.
1, Content-Type
In many cases, the Content-Type issue cannot be resolved.
Skip this step if it is an xml file.
The dynamically generated XML must be set to text/xml. Otherwise, text/html is the common text by default.
Set Content-Type in common
// Create a component
Function createobj (){
If (window. ActiveXObject ){
Return (new ActiveXObject ("Microsoft. XMLHTTP "));
}
Else if (window. XMLHttpRequest ){
Return (new XMLHttpRequest ());
}
}
Var cs;// Send the requestFunction sxs (Fileid
The types of Mootools mainly include the following parts: String; Number: Number; Array: Array; Object: Object; Json:; Cookie :.
This is also the focus of our speech today. each data type Mt has extended its own method, which can be seen through the
1. Ensure security at the front and back ends. The front-end cannot be used alone for security verification. The backend must also have a filtering mechanism to check the information sent in front. Since Ajax will also receive information sent from
Use AJAXRequest for AJAX application development (1)-First knowledge of AJAXRequestPrefaceAfter several versions of the AJAXRequest class were released, many friends gradually used it, and many friends asked me if I had more detailed instructions
Because the commonly used webpage files are basically in gb2312 encoding mode, if you read them through the xmlhttp Control, garbled characters will certainly occur, but you need to change all the files to UTF-8 encoding, it is difficult to operate.
Today, I modified a bug and used ajax to query data. In Google's browser, I can get the latest data. In IE, I got old data, but I cannot get the latest data, I found the IE cache again.It is found that the ajax request uses the get method. The URL
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