Page 1 of 1

IE 7 issue

Posted: Sat Jan 29, 2011 5:18 pm
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()
	}

Re: IE 7 issue

Posted: Mon Jan 31, 2011 10:30 am
by Jade
Which line in the function is throwing the error?

Re: IE 7 issue

Posted: Wed Feb 02, 2011 11:33 am
by spedula
I don't get the error in IE 8, so I'm thinking of just doing a user agent check.