If I try to append a PARAM tag twice I'm having problems:
var.medDiv = document.getEle mentById("myDiv ");
var medObj = document.create Element("object ");
var p = document.create Element("param" );
p.setAttribute( "FileName",this .URL);
medObj.appendCh ild(p);
p = document.create Element("param" );
p.setAttribute( "AutoStart","fa lse");
medObj.appendCh ild(p); // <-- this one
medDiv.appendCh ild(medObj);
The line with the "this one" comment triggers IE to tell me that it has
an invalid argument. If I change the order of the PARAMs then the new
second PARAM will give me the error. If I move the setAttribute to after
the appendChild I still get the error.
I'm unsure what's wrong.
Andrew Poulos
var.medDiv = document.getEle mentById("myDiv ");
var medObj = document.create Element("object ");
var p = document.create Element("param" );
p.setAttribute( "FileName",this .URL);
medObj.appendCh ild(p);
p = document.create Element("param" );
p.setAttribute( "AutoStart","fa lse");
medObj.appendCh ild(p); // <-- this one
medDiv.appendCh ild(medObj);
The line with the "this one" comment triggers IE to tell me that it has
an invalid argument. If I change the order of the PARAMs then the new
second PARAM will give me the error. If I move the setAttribute to after
the appendChild I still get the error.
I'm unsure what's wrong.
Andrew Poulos
Comment