You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

IE7 objectName_api is undefined error loop Created Jan 29, 2009

This thread is solved

Views: 4700     Replies: 3     Last reply Apr 20, 2009  
You must login first before you can use this feature

jsheely

Posts: 1

Registered:
Jan 29, 2009

IE7 objectName_api is undefined error loop

Posted: Jan 29, 2009

Everything works fine in FireFox. So I test it in IE7 and I get a javascript error in an endless loop saying "videoId1_api is undefined"

if I turn off script debugging the flash will play and everything appears fine except for the javascript error. If I don't disable script debugging the video never comes up and it appears to be a problem just before it passes the XML data to the flash object.

Here is the text that comes up in my script debugging:
try { videoId1_api.SetReturnValue(__flash__toXML(self.location.href.toString()) ); } catch (e) { videoId1_api.SetReturnValue("<undefined></undefined>"); }

I looked all over for a script that looks like this but could not find anything. What's more confusing is why would I even get an error if it is contained within a try catch block.

Any help would be appreciated.

Jon

thunder

Posts: 2

Registered:
Nov 23, 2008

» IE7 objectName_api is undefined error loop

Posted: Mar 13, 2009

Reply to: IE7 objectName_api is undefined error loop, from jsheely
I have exactly the same error, and dont know, what I could do. If you solve this problem, please leave me a message. In firefox, it also works here.

__flash__addCallback(player_api, "fp_getVersion");
try { player_api.SetReturnValue(__flash__toXML(self.location.href.toString()) ); } catch (e) { player_api.SetReturnValue("<undefined/>"); }

regards
hermann.

__aaron__

Posts: 4

Registered:
Apr 17, 2009

IE7/IE8 player_api is undefined error loop

Posted: Apr 17, 2009

Reply to: IE7 objectName_api is undefined error loop, from jsheely
Background:

I have also been experiencing this error, and have now confirmed it in flowplayer 3.0.5 and 3.1 in both IE7 and IE8. Chrome, Firefox, and Safari (I believe) work as intended. I am using flowplayer with the playlist plugin and believe that this error arises only in conjunction with playlists...

A side note: The 'manual html' sample has a javascript error in IE and does not appear to work with flowplayer 3.1.

Error cause:

After some testing I've found that the error loop only occurs on pages which use valid html. If you look at the playlist sample code the '<head>', '<body>', and '<html>' tags are missing. By adding these tags to the sample the error can be replicated.

Work around:

For the other people experiencing this issue removing the head, body, and html tags seems to stop the error... I'm not sure if I'm going to ignore the error, strip the tags, serve an IE specific page, or dynamically change the html sent to the client if IE is detected, but all are valid work arounds for the moment. Hopefully we can see a fast resolution to this issue.

Hope this helps,
Aaron

__aaron__

Posts: 4

Registered:
Apr 17, 2009

» IE7/IE8 player_api is undefined error loop

Posted: Apr 20, 2009

Reply to: IE7/IE8 player_api is undefined error loop, from __aaron__
As discussed here the error is actually caused by the <form> tag, not the head/html tags as I believed.

Apparently just moving the players container outside of the <form> tag will resolve the issue for the moment.