U
ubi_comp
Hi,
I have one parent page P1 and two IFrames F1, F2.
Please excuse my ignorance but is it possible to Re-Use HTML elements
(controls) (document.createElement() ) in parent and then remove it
from one document (P1) and append it in another child document, in this
case my F1 and F2?
More specifically Is it possible to do something like following:
var el = document.createElement("SELECT") in parent page and when F1 is
loaded I would like to remove this 'el' from P1 and would like to add
this el in F1 page
var removed = parent.document.getElementById("someid").removeNode (or
removeChild)
F1.body.appendChild(removed)
I tried doing this but I got "htmlfile: invalid argument"
What I undertsand is that although elements can accessed but they are
like readonly or maybe they can be edited as well from the child page
BUT these cannot be used for rendering on child pages, IFrames...Are
these assumptions correct?
I thank you in advance for any pointer or comment.
Rauf
I have one parent page P1 and two IFrames F1, F2.
Please excuse my ignorance but is it possible to Re-Use HTML elements
(controls) (document.createElement() ) in parent and then remove it
from one document (P1) and append it in another child document, in this
case my F1 and F2?
More specifically Is it possible to do something like following:
var el = document.createElement("SELECT") in parent page and when F1 is
loaded I would like to remove this 'el' from P1 and would like to add
this el in F1 page
var removed = parent.document.getElementById("someid").removeNode (or
removeChild)
F1.body.appendChild(removed)
I tried doing this but I got "htmlfile: invalid argument"
What I undertsand is that although elements can accessed but they are
like readonly or maybe they can be edited as well from the child page
BUT these cannot be used for rendering on child pages, IFrames...Are
these assumptions correct?
I thank you in advance for any pointer or comment.
Rauf