IE8 Compatibility, API Version 2.4, Google API hosting Jquery version 1.6.4

880
3
09-30-2011 10:06 AM
AaronConnolly
Occasional Contributor
I have searched high and low for information regarding the javascript API and how to enforce compatibility mode for various browsers, however all I ever find is the meta-tag fix. That says put this in your header tag:

<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9" />

.. and your application will work all versions of IE. I have a couple questions in response to this:

1. How does this affect IE8? IE9?
2. How can we properly test IE8 using the IE9 browser's development tools?
3. Are there any known issues with version 2.4 of the Javascript API and jQuery's latest offering 1.6.2?
4. Are there any known issues with using Google's Library API for hosting jQuery?

We're running into many issues with IE, version 2.4 of the API and, now jQuery.

This is very frustrating and the documentation and resource center don't seem to offer much information in this area.
0 Kudos
3 Replies
JeffPace
MVP Alum
IE is frustrating.

We are currently using the 2.4 api with jquery 1.62 and jqueryui 1.8.14

I load it from a jsp page using
            <script type="text/javascript">
                google.load("earth", "1.x");
                google.load("jquery", "1.6.2");
                google.load("jqueryui", "1.8.14");
            </script>
It works in ie7, ie8, and ie9.  I only use ie7 developer tools, as my office will not allow me to upgrade, however we do test against ie8 and ie9 for compatibility and havent found many issues.

Hope this helps, or at least alleviate's some of your concerns.
0 Kudos
derekswingley1
Frequent Contributor
Hi Aaron,

1. IE8 will emulate IE7. IE9 uses IE9. I got this info from here:  http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
2. Not sure.
3. No known issues, AFAIK
4. No known issues, AFAIK

I'm probably opening a can of worms here but what specific issues are you seeing? Is it possible to list them? I briefly tried your site (http://www.crimemapping.com/default.aspx, right?) and didn't see any errors...
0 Kudos
AaronConnolly
Occasional Contributor
All - Our situation involved a jQuery UI date picker control, API version 2.4 and some invalid mark up. Our javascript wet the bed in IE 8 when it tried setting a value to an span element whose mark up looked like this: <span />

As best I can guess this is invalid mark up and IE 8 did not like it. IE 7 and IE 9 handled it with no problem. The issue was resolved by changing <span /> to <span></span>.

I thought there was some conflict between our date picker control (jQuery UI) and the javascript API (which pulls in DOJO 1.6.x). Thankful there was no conflict. All seems to be working now.
0 Kudos