Pass events or data to IFRAME

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

I have a webform on this form is a User Control and another webform in
IFRAME
On the User Control there is a save button.

I want to click this button and somehow tell the webpage in IFRAME that the
button was clicked, how would I do that?
(in other words I want to save the webform data in IFRAME when the save
button is clicked)

Peter
 
If you want to "talk" to an iframe using client side script, you just need
to use something like this:

document.frames("frameName").document.forms("formName").submit().
 
Thanks for your help!

What about if there are more than one button, say 'Save' and 'Delete'
buttons how do I know which one was clicked?
 
Back
Top