Avatar of ThievingSix
ThievingSixFlag for United States of America 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.removeChild( elem );"
// 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;

Open in new window

I know I didn't explain it clearly but I hope the experts here can get the jist of it.

Any ideas?
JavaScriptJScriptWeb Languages and Standards

Avatar of undefined
Last Comment

8/22/2022 - Mon
Michel Plungjan

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:

try { document.getElementById("playbox3_api").SetReturnValue(__flash__toXML(window.location.href.toString()) ); } catch (e) { document.getElementById("playbox3_api").SetReturnValue("<undefined/>"); }

Open in new window


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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

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.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

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?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.