Class Name: Ajax
CopyCode The Code is as follows:/* Class Name: Ajax
Creation Method: var ajaxobj = new Ajax;. If creation fails, false is returned.
Attribute: method-Request Method, String, post, or get. The default value is
I started to think it was good to use Ajax for a project. Then I found a problem, for example, deleting an item. After the project is restored, it cannot be deleted,You have to wait for a while. Later I learned that it was an issue with IE
Compatible with: Opera 9.6 + chrome 2.0 + ff 3 + IE 6
Effect: verification is performed on the input side.
Environment: Ruby 1.8.6 + rails 2.1.0 + windows
Core code:
HTML:
The prompt message is displayed when the browser disables javascript:
1. fancyupload (Demo address)
Fancyupload is a multi-File Upload Component that uses flash and Ajax (mootools) technology to upload progress bars, similar to swfupload.2. swfuploadpanel (Demo address)
Swfuploadpanel is a multi-File Upload
After reading the cascade menu made by Daxia, I also made an axe to the class. Hey, it took some time to paste a cascade menu. In this example, the member name is automatically displayed as long as you select the member category name:
First, create
You can directly use the background program to capture weather information across domains.
Currently, firefox is fully supported.
Copy codeThe Code is as follows:
untitled document
Wuhan Nanchang Haikou Beijing Shanghai Guangzhou
Because ajax has a problem with cross-origin access, the best method is to act as a proxy. I wrote a proxy program and my experiences.
In order to act as an ajax proxy, I studied xmlhttp on the lower server and compared it with xmlhttp on the client
Main functions:
Copy codeThe Code is as follows: Function getObject (objectId ){
If (document. getElementById & document. getElementById (objectId )){
// W3C DOM
Return document. getElementById (objectId );
}
Else if (document. all & document. all
Copy codeThe Code is as follows:
GroupText
activity name sender receiver sending time send content Points Status Height = "100%"> Width = "100%" colSpan = "10">& Lt; table width = "100%" & gt; A total of 0 recordsCurrently,
Copy codeThe Code is as follows: var paramBeanList = new Array ();
Array. prototype. addParamBean = function (paramBeanObj ){
Var index = this. containParamBean (paramBeanObj );
If (index! =-1 ){
This [index] = paramBeanObj;
} Else {
This. push
Author: legendHttp://www.ugia.cn /? P = 85In ajax applications, a page usually sends multiple requests at the same time. If there is only one XMLHttpRequest object, the previous request is not completed, and the subsequent request will overwrite the
Because ajax has a problem with cross-origin access, the best method is to act as a proxy. I wrote a proxy program and my experiences.In order to act as an ajax proxy, I studied xmlhttp on the lower server and compared it with xmlhttp on the client
If you use get in IE7 or earlier requests, the URL restriction is easily overlooked (up to 2083 characters ). Therefore, if the URL may be too long, POST must be
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