I have done some tests and I can say that cloneNode and appendChild are working propperly, the problem is generated by the object gotten by "window.opener.document.getElementById". I think this object is a html table object but with something additional that makes the appendChild fail.
If...
Well, I have added a try statement and I get an error that refers to the interface used to clone and append the elements. I got the uncompatible interface, err.description.
I'll continue testing this. If anyone knows another way or a specific declaration of varaibles to get elements from a...
Thx for the error, in fact my code is always adding elements, for that we should declare some first steps to empty the div, in case the div elements have child appended, so the code that should be added is:
while (myDiv.childNodes[0]) {
myDiv.removeChild(myDiv.childNodes[0]);
}
put this...
Hi feherke. I have not problems with the cloneNode function, I have tested the script and I know that the error is in the appendChild function. Maybe I have to do something else to append a table element into a div. As I said, the elements appended in the last lines are tables, with a caption...
You must use a function like these called by an onChange Event:
//Important: to make this easy, create an empty div element in the place u would like to show the input elements. In this case, my div's id will be "idDiv"
function createInputs(){
var myDiv = document.getElementById("idDiv")...
Hi everyone, I'm having problem getting this work in IE, the code works fine in Firefox.
The problem:
I'm opening a child window which goes to the parent window to get 2 tables, then I clone them and need to be appended to 2 divs in the child window.
The popup is being opening fine.
I'm...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.