ThievingSix
asked on
'Null' is Null or not an object - IE only JQuery error
This is the site that I am working on: http://www.mvttechtalk.com/
When you play a video the fancybox opens and when you close it the error occurs. If you want to reopen the same video you are unable (others work just once too).
Now, I have FancyBox loading a flowplayer video player. It only happens in IE and when it the FancyBox opens. Chrome and Firefox handle it fine.
With the dev tools I found it's happening at 4787 which is this line in the code below: "elem.parentNode.removeChi ld( elem );"
I know I didn't explain it clearly but I hope the experts here can get the jist of it.
Any ideas?
When you play a video the fancybox opens and when you close it the error occurs. If you want to reopen the same video you are unable (others work just once too).
Now, I have FancyBox loading a flowplayer video player. It only happens in IE and when it the FancyBox opens. Chrome and Firefox handle it fine.
With the dev tools I found it's happening at 4787 which is this line in the code below: "elem.parentNode.removeChi
// keepData is for internal use only--do not document
remove: function( selector, keepData ) {
for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
if ( !keepData && elem.nodeType === 1 ) {
jQuery.cleanData( elem.getElementsByTagName("*") );
jQuery.cleanData( [ elem ] );
}
if ( elem.parentNode ) {
elem.parentNode.removeChild( elem );
}
}
}
return this;
},
I know I didn't explain it clearly but I hope the experts here can get the jist of it.
Any ideas?
No problems at all in IE8 on XP
yes i see your problem in IE7
it's failing on this line but i'm having issues tracking it:
it's failing on this line but i'm having issues tracking it:
try { document.getElementById("playbox3_api").SetReturnValue(__flash__toXML(window.location.href.toString()) ); } catch (e) { document.getElementById("playbox3_api").SetReturnValue("<undefined/>"); }
What i would do is remove the other javascript libraries to see if there is a clash.
start by removing the following and see if you still get the error
flow_player-3.2.4.js
audio_player.js
start by removing the following and see if you still get the error
flow_player-3.2.4.js
audio_player.js
ASKER
With the process of elimination it seems to be the combination of flowplayer and fancybox. Any ideas on trying to resolve this without replacing either one?
I'll go ahead and debug and see where the conflict is.
I'll go ahead and debug and see where the conflict is.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I haven't replied here in a while but that's not because the problem has been fixed I just haven't had time to work on that website. I will get to it as soon as I can.
Was the problem the noConflict in JQuery?