Select to view content in your preferred language

infoWindow tab opens w/o text in IE

601
2
Jump to solution
02-06-2013 06:43 AM
deleted-user-ugCMpXci8bn5
Deactivated User
Hello,

My app uses a tabbed infoWindow based on this example:

http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/find_drilldown

In IE9, when I identify a layer, then identify another layer, then go back and identify the first layer, the tab in the infoWindow opens up blank.  If I open another tab and then return to this tab, it then has text as expected.

I do not have any problems in Firefox or Chrome.  I thought perhaps this was a timing issue (that perhaps the window was showing before the text was loaded into all the tabs.  I tried a deferred function, so that the window would wait to show until all the text was loaded...but this didn't seem to help.


Has anyone had problems like this using IE?  My code does include ' <meta http-equiv="X-UA-Compatible" content="IE=7", "IE=9" />'...
0 Kudos
1 Solution

Accepted Solutions
deleted-user-ugCMpXci8bn5
Deactivated User
well I think I solved this, although I am still learning why this works!

Previously I had this tag at the top of my index page:

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


I noticed using F12 that my page was opening up as an IE7 document.  I checked out a co-worker's code and changed the above lines to read:
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />     <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />


...which seems to do the trick, now my webapp opens as an IE9 document, and I no longer have this problem with the infoWindow.

If anyone can give a better explanation of how this <meta> tags work please comment here!

View solution in original post

0 Kudos
2 Replies
deleted-user-ugCMpXci8bn5
Deactivated User
well I think I solved this, although I am still learning why this works!

Previously I had this tag at the top of my index page:

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


I noticed using F12 that my page was opening up as an IE7 document.  I checked out a co-worker's code and changed the above lines to read:
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />     <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />


...which seems to do the trick, now my webapp opens as an IE9 document, and I no longer have this problem with the infoWindow.

If anyone can give a better explanation of how this <meta> tags work please comment here!
0 Kudos
SteveCole
Honored Contributor
Welcome to the hell that is Internet Explorer. You can look forward to more of this kind of maddening behavior if you ever try using the charting capabilities of dojo.

To your follow up question, you can try reading this:

Specifying legacy document modes
0 Kudos