HighDots Forums  

Passing Info with innerHTML - tricky problem?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss Passing Info with innerHTML - tricky problem? in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Edwin
 
Posts: n/a

Default Passing Info with innerHTML - tricky problem? - 08-06-2006 , 12:56 PM






I've been Googling & can't find a consistent cross-browser (IE & Firefox) answer to
this...

I need to pass some data from inside an iframe, to the parent page

I've got the parent page PAGE1.HTM which contains
<div ID="mydata"></div>
:
<iframe src="page2.htm"></iframe>


And, inside PAGE2.HTM I will set mydata to a hard string. But do I do

var parent.document.mydata.innerHTML = "my data here'

or

var window.parent.document.all.mydata.innerHTML = "my parent here"

or something else...???







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.