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