Beginners play Ajax a few attention places

Source: Internet
Author: User
Tags domain
Ajax Cross-domain restrictions
Browser is not allowed to cross the domain XMLHttpRequest, even domain, sub-domain different, and can not, like Flash Player. With domain and sub-domain, different port, there is no limit. As far as local tests are connected to any domain, IE allows Firefox to be allowed. To solve the cross domain restrictions, the common aspect is, as with Flash, the use of some server-side proxy programs to load the data across the network.

The whitespace question of XmlNode
That is, the flash inside must add a sentence of ignorewhite=true, to prevent XmlNode space/tab/enter is a node, affect the XML parsing. In IE will automatically ignore whitespace, but Firefox does not, so it is easy to find some of the strip XML whitespace JavaScript program to delete whitespace, such as this light practical ajaxlib.

What browser support XMLHttpRequest

Konqueror

Microsoft Internet Explorer (and derived browsers) 5.0+ (MAC OS version not supported)

Mozilla/mozilla Firefox (and derived browsers) 1.0+

Netscape 7.1+

Apple Safari 1.2+

Opera 7.6+

Opera Mobile Browser 8.0+
Safari and Chinese
It is inevitable to use UTF-8 as a code, but I found that some Chinese characters in Safari will make XML parsing problems, boring ...

IE Image Cache Bug
When IE has set "every time you check the screen", all the images will be downloaded again, and the details can be seen from the web.

This article is published by Luar.<

Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

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.