View Full Version : importNode crossbrowser

03-14-2008, 12:13 AM
1) CODE TITLE: Making importNode crossbrowser

2) AUTHOR NAME/NOTES: Arie Molendijk

3) DESCRIPTION: There's no IE-implementation of importNode. So we have to do some emulation to make it work. We can deal with the problem by using a (slightly modified) 'general' script written by John Davenport Scheuer (Dynamic Drive) and more specific scripts for (i) importing external nodes from an object, (ii) importing external nodes from an iframe, and (iii) moving (replacing) nodes within a page. (IE does not uniformally handle importing content from an iframe and importing content from an object). As I think that looking at the source of the page will do, I don't explicitly give all the details. The pages have demos.
This is related to http://www.dynamicdrive.com/forums/showthread.php?t=30079

4) URLS TO CODE: http://molendijk.110mb.com/importNodeIE/importNodeIE.html and http://molendijk.110mb.com/importNodeIE1/bringNode.html