Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing parent form variables from Iframe

Status
Not open for further replies.

ntm0n

Programmer
Jun 22, 2001
30
US
I have an iframe identified on a page, I would like to be able to get the values from form objects that reside on the parent page. Is this possible? if so how?

I can access variables when the iframe is refreshed by passing the information via the command line, and then using the request.querystring() method :(fm2 is the iframe)

document.all.fm2.src="server.asp?lbBranch=" + formPrjMain.lbBranch.options[formPrjMain.lbBranch.selectedIndex].value

But I would rather reach the current value of the object (such as a text box) on the main page, mainly because a text box may contain more text than the querystring will allow.

Thanks

Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top