You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

1

Sunday, March 29th 2009, 2:39pm

Object doesn't support this property or method (IE SWFObject bug)

Hi,

I just found out that my site doesn't work on IE and on Mac too like Tuur said. I'm narrowing it down, I'll fix the IE the part first coz I don't have mac. It's working fine with firefox, safari, google chrome. Anyway, the part that's not working on IE is when I use javascript to call a krpano/swf object function. I've tried researching about SWFObject and IE bugs but so far couldn't find anything that would help me.

Anyone encountered this before?

function lookToHotspot(hotspot)
{
try
{
var krpano = document.getElementById("krpanoSWFObject");
krpano.call("looktohotspot("+hotspot+")"); //This is where it doesn't work
}
catch(err)
{
alert(err.message);
}
}

thanks,
Milo

milotimbol

Intermediate

  • "milotimbol" started this thread

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

2

Sunday, March 29th 2009, 3:04pm

Hi,

I found the solution here

http://www.rednas.be/news/43/swfobject-i…lorer-error-fix

So instead of loading the krpano from the html file like this.

<div id="krpanoDIV">
<script type="text/javascript">
loadKrPano();
</script>
<noscript>ERROR: no Javascript</noscript>
</div>

I moved it to a dom ready function in my external javascript file

YAHOO.util.Event.onDOMReady(
function ()
{
loadKrPano();
}
);

Im using yui utilities not sure how to do it in just plain javascript.

Similar threads