Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Accessing a hidden element on another frame


Message #1 by Shaun Steckley <SSTECKLEY@P...> on Fri, 16 Mar 2001 16:17:16 -0500
Thanks for the try Israel.  I just figured it out myself.  Just an FYI for
other developers...

top.frameName.document.formName.hiddenName.value


-----Original Message-----
From: Johnson, Israel [mailto:IJohnson@R...]
Sent: Friday, March 16, 2001 4:28 PM
To: javascript
Subject: [javascript] RE: Accessing a hidden element on another frame


try
==========
	top.frameName.forms['formName'].hiddenName.value

-----Original Message-----
From: Shaun Steckley [mailto:SSTECKLEY@P...]
Sent: Friday, March 16, 2001 4:17 PM
To: javascript
Subject: [javascript] Accessing a hidden element on another frame


I currently have a frameset where one of the frame pages host a hidden input
tag.  I would like to retrieve the value of this hidden tag from the second
frame page.  In IE I can access the value by using:

	top.frameName.formName.hiddenName.value

However I receive the following error in Netscape:


	top.frameName.formName.hiddenName has no properties. 

I am trying to stay optimistic that this is possible within Netscape if I
just use the right combination of objects.  If anyone could help, it would
be greatly appreciated.

Shaun

  Return to Index