We help IT Professionals succeed at work.
Get Started

'Null' is Null or not an object - IE only JQuery error

2,671 Views
Last Modified: 2012-05-10
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?
Comment
Watch Question
Owner (Aidellio)
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE