Reusing HTML elements from one 'document' to another

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top