Hi list,
Further to my last post "frozen popup workaround" my FramedCloud popups
are now working well in firefox. There is one remaining problem that
occurs in Internet Explorer. If a flash player, played from an open
popup, is not closed before the popup is closed - the sound continues to
play untethered in the background. The same happens if another feature
is selected while a flash player is playing in an open popup.
my page again is here: www.rabeca.org/index.htm
Firefox tidies up active flash players automatically, but IE doesn't. I
tried using close() and the following function in my onFeatureSelect and
onFeatureUnselect functions to kill-off any stragglers, but it doesn't
work in IE (it works in firefox where it is not needed):
function getPlayer(playerID) {
if (document.all && !window[playerID]) {
for (var i = 0; i < document.forms.length; i++) {
if (document.forms[i][playerID]) {
return document.forms[i][playerID];
break;
}
}
}
return document.all ? window[playerID] : document[playerID];
};
I
getPlayer('audioplayer1').close();
in: onFeatureSelect and onFeatureUnselect
The flash player is embedded in the textfile in
"OpenLayers.Format.Text()" format: www.rabeca.org/textfile_rabeca.txt
Should it be necessary to include such a check for IE browsers, or does
my page have an error that prevents the automatic closure of the player
from happening?
Sorry I know little about javascript.
Cheers,
Iain
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users