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

capturing value of drop down in an IFRAME 2

Status
Not open for further replies.

schase

Technical User
Sep 7, 2001
1,756
US
I'm needing to build a dynamic entry form - where the person putting in information can add to the list of criteria. But with ASP you need to refresh the page for the dropdown to show the new criteria.

So I figured IFRAME, I could just do a refresh there without loosing the rest of the page of entered info.

But how do I grab the value from the iframe?

"Insert witty remark here"

Stuart
 
I haven't used iframes, but this works in regular frames...

parent.framename.document.formname.fieldname.value
 
Hi

You can refer the iframe using

self.frames['nameoftheiframe']

ex:

<iframe name=DataFrame src='data.asp' >
</iframe>

you can refer the contents of the iframe as
self.frames['DataFrame'].document.form1.text1.value

balajees
 
worked like a charm, thank you guys. &quot;Insert witty remark here&quot;

Stuart
 
ooops, I was trying the wrong window.

I get this error

Expected end of statement

/admin/addentries2.asp, line 37

rs5(&quot;fldSalesPerson&quot;)= self.frames['salesframe'].document.form1.fldsalesperson.value
&quot;Insert witty remark here&quot;

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top