IE 7 issue

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
spedula
Forum Commoner
Posts: 81
Joined: Mon Mar 29, 2010 5:24 pm

IE 7 issue

Post by spedula »

I have a function that removes an element from the DOM. It works fine in chrome but in IE 7 it throws me an error: Not Implemented. I have no idea what this means. Am I overlooking something very simple here?

I pasted it exactly as is.

Code: Select all

	function destroy(element) {
		parent = element.parentNode
                child = element.firstChild
		parent.removeChild(element)
		if (parent.firstChild == null) {
			nE = document.createElement('p')
			nE.innerHTML = "No Content"
			parent.appendChild(nE)
		}
		if (parent.id == "OLR") {
			oldRightContent = $('#OLR').html()
		}
		else if (parent.id == "OLM") {
			oldMidContent = $('#OLM').html()
		}
		checkAll()
	}
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: IE 7 issue

Post by Jade »

Which line in the function is throwing the error?
User avatar
spedula
Forum Commoner
Posts: 81
Joined: Mon Mar 29, 2010 5:24 pm

Re: IE 7 issue

Post by spedula »

I don't get the error in IE 8, so I'm thinking of just doing a user agent check.
Post Reply