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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing a variable to an inline frame 1

Status
Not open for further replies.

sweetleaf

Programmer
Jan 16, 2001
439
CA
Hi,

Can anyone tell me how i can pass the value of a page element from an asp page to an inline frame?

say i have this on Page1.asp
<input type=text id=text1 name=text1 value=&quot;Hi&quot;>

..how can i retrieve the value of the &quot;text1&quot; tag
on Page2.asp considering Page2.asp is an inline frame and i am not submitting to it?

any help is much appreciated thanks!
 
sweetleaf,

To grab the current value in text1 on page1.asp from page2.asp (given that page2.asp is an iframe) do the following:
Code:
val = parent.document.page1FormName.text1.value

hth,
Earme
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top