Forum Moderators: open

Message Too Old, No Replies

Netscape 6.23 and Dyamically creating IFrame

Having problem creating an IFRAME and adding a form

         

borbird

6:57 pm on May 29, 2002 (gmt 0)



I have the need to (in NN 6.2+) be able to dyamically create an IFRAME, a FORM and various input elements and submit the form all via Javascript. I can do this no problem in IE but am having difficulties with NN. Every time I create the IFRAME element in NN the contentDocument element is null...seems like this is my problem but I'm not sure. Any ideas? (small code snippets would be greatly appriciated)

tedster

8:59 pm on May 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's a reference from O'Reilly [oreillynet.com] that addresses some of the issues.

DrDoc

9:04 pm on May 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



.. and welcome to Webmaster World, borbird! ;)

borbird

10:46 pm on May 29, 2002 (gmt 0)



Thanks, Tedster!! That article is just what the doctor ordered. Nice cross-browser code for hidden iframe communication - my problem was that I was not giving the browser any time to realize the creation of the iframe.contentDocument. Evidently alot of tasks in NN are asynchronous?

Thanks again. Thanks for the 'welcome' notice, DrDoc

tedster

8:57 am on May 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, borbird, welcome! And please excuse my poor manners in not welcoming you earlier. Your question was so interesting to me, I didn't even register the fact that this was your debut post.

This is an area where Netscape/Mozilla were a bit late for the party - compared to Microsoft. From what I've read, the hold up was focused on some security concerns when pages on one server frames pages from another server. I'm not sure if the original IE implementation had a problem there or not, but at any rate all seems resolved today.