Webocreation

Monday, April 11, 2011

the jquery and other javascipt works in the firefox but not in the IE 6, IE 7, IE 8, IE 9





Know about the why the jquery and other javascipt works in the firefox but not in the IE 6, IE 7, IE 8, IE 9

We must be very careful on using the jquery file. It should be included only once in the whole page.
If it is included twice in the page then the jquery will work in the firefox but not in the IE.

Like wise we must be careful of the version that we and the example is using. If we use the different version then also it will create the problems.

We must be very careful in using the Id in the javascript and jquery.

Css also play important role in browser compatibility. We can hack the IE by using _ "Underscore" in-front of the properties of the class.

Like for example,
body {
margin: 0px;
padding: 0px;
text-align: center;
_padding: 10px;
}

Now by the above the padding of 10px will be taken by the internet explorer.

No comments:

Post a Comment