Pass events or data to IFRAME

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
 
C

Chris Jackson

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().
 
P

Peter

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?
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top