Frames and Control Value Question

  • Thread starter Thread starter David Hearn
  • Start date Start date
D

David Hearn

I am using frames in a site that I am building (I know! But not my choice).
I have the need to be able to get the value from a DropDown List that is in
one frame and read it from another frame. I know there is a way to do this
using client side code, but I'm not sure how. I've never been a javascript
expert. Any code examples or links to such code would be greatly
appreciated!

Thanks in advance!
 
I could do this for you, but I dont have the time to mess around with it at
present. In essence, you need to do something like this.

a.) set up a function to be called in the page in the second frame.
<script lanuage=Javascript>

function addit( str ){

list2.add(str)

}

</script>

b.) from your calling page inside frame1, call the function in frame2
passing it the value you need to add using something like, this ( its not
accurate because I dont do that much JScript at all, but it will be
something like.

parentwindow.parent.document.frame2.document.all( addit('hello');

Now I know the comand above is not correct, but of you do a little digging
around you will find the right syntax. In essence you need to come up to the
parent document and down the iframe into its document and call the funtion
on the remote page.


HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

kill HTML Frames 1
Frames and response.redirect 3
Frames 1
frames page Asp to Asp.net 1
Hyperlink & Frames 1
Frames 2
frames in ASP.NET 1
asp.net Frames 2

Back
Top