|
Hi
I have probs with Iframes.
I can access obects in the Iframe when in the parent using this syntax
document.frames.IframeName.document.all.component.value
e.g
document.frames.ComplaintDetails.document.all.txtFileName1.value
I need to be able to submit the Iframe from the parent...any ideas?
|
|
|
I`ve done this - you`ve got an iframe called editbox, so when you submit the form, go to a javascript function that colects editbox.document.body.innerHTML and store that in a hidden form variable on the main page - hope that helps!
|
|
|
I have a similar problem, however, using ASP pages. I`m trying to submit an iframe from its parent form. I don`t quite understand the response given to your problem. Can you please provide me with some help!
Thank you.
|
|
|
The previous response explained to you how to take a value from a textbox in the IFRAME and submit that value in a form that is in your parent window.
However, it seems that what you want is to be able to trigger a form submit for a form that is in your IFRAME from the parent window. If so...
I`m not familiar with working with the frames collection, but if this code you posted works:
document.frames.ComplaintDetails.document.all.txtFileName1.value
Then I expect this should work to submit a form that is in the IFRAME from the parent window:
document.frames.ComplaintDetails.document.forms[0].submit();
Let me know if this does not work and I`ll find the answer.
|
|
|
|
|
I am having trouble with the exact same thing:
Here are some examples:
document.frames.myFrame.document.all.fname.value = "tester";
that works.. but only in Internet Explorer, not FireFox. FireFox returns with an error saying "document.frames has no properties".
Also, your submit code does not work in Internet Explorer OR FireFox.
I have been researching this all day with zero luck. Can you shed some light?
|
|
|
I know this could work in frames maybe the same with iframe...
so lets say this is in Frame Named "a" the target of this frame is Frame "b"
top.Frame_Name.document.Form_Name.Input_Value.value='Stuff';
Frame "b" has the form to edit..
hope it helps
Flex,
|
|
|