Revision 3508
Added by ben leinfelder about 17 years ago
lib/style/skins/sanparks/SaeonLogin.jspx | ||
---|---|---|
96 | 96 |
function setMapLocation(strLocation) { |
97 | 97 |
|
98 | 98 |
var mapFrameDocument = document.getElementById("mapFrame").contentDocument; |
99 |
|
|
99 |
if (!mapFrameDocument) { |
|
100 |
//alert("IE"); |
|
101 |
mapFrameDocument = document.getElementById("mapFrame").contentWindow; |
|
102 |
if (mapFrameDocument.document) { |
|
103 |
mapFrameDocument = mapFrameDocument.document; |
|
104 |
} |
|
105 |
|
|
106 |
} |
|
107 |
//alert("mapFrame=" + mapFrameDocument.name); |
|
108 |
//alert("locations=" + mapFrameDocument.getElementsByTagName('locations')); |
|
109 |
|
|
100 | 110 |
//check if the dropdown is loaded in DOM |
101 | 111 |
if (mapFrameDocument.getElementsByName('locations').length == 0) { |
102 | 112 |
dropDownTimer = setTimeout("setMapLocation('" + strLocation + "')", 100); |
Also available in: Unified diff
fix IE compatibility issue with iframe content documents