http://developer.irt.org/script/frame.htm

I think you need to add in the 'document' to your statement:
top.frame_a.document.form_a (which should then work in both IE and
Netscape).

also, it's getElementByID, not getElementID.




                                                                                       
                            
                    "Allan Cliff                                                       
                            
                    - CFUG Spain"        To:     "CF - List" <[EMAIL PROTECTED]>       
                  
                    <[EMAIL PROTECTED]        cc:                                      
                                 
                    ain.org>             Subject:     [ cf-dev ] Frames and Netscape   
                            
                                                                                       
                            
                    24/05/2004                                                         
                            
                    09:52                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



Can someone give me a push in the right direction here.
Russ said he had one frame referencing another fine in an email i posted
last week but i just can't get it working.

1 page to set 2 frames. 1 htm page in each frame. Frame A with a form and
Frame B trying to read the data in Frame A.
It works in IE but not in Netscape. (top.frame_a.form_a has no properties)
I couldn't get it to work with getElementId() either. It kept saying it
wasn't a function ?!?!

Aaaaggh its Monday again.

Thanks
Allan
---------------------------


index.htm
---------
<html>

<frameset cols="*,*" framespacing="0" border="0" frameborder="0">
  <frame name="frame_a" src="a.htm" scrolling="no" marginwidth="0"
marginheight="0" noresize>
  <frame name="frame_b" src="b.htm" scrolling="no" marginwidth="0"
marginheight="0" noresize>
</frameset>

</html>

a.htm
------
<HTML>
<BODY>
Frame A
<P>
<FORM ACTION="a.htm" METHOD="post" NAME="form_a">
 <INPUT TYPE="Text" NAME="field_a" VALUE="Test String">
</FORM>
</BODY>
</HTML>

b.htm
------
<HTML>
<BODY>
Frame B
<P>
<FORM ACTION="b.htm" METHOD="post" NAME="form_b">
 <INPUT TYPE="button" NAME="button_b" VALUE="Test" OnClick
="alert(top.frame_a.form_a.field_a.value);">
</FORM>
</BODY>
</HTML>




-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to