codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Submitting Iframes  Archive Import (Chaten) at 10:46 on Wednesday, March 05, 2003
 

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?


  Submitting Iframes  Archive Import (davidatkins) at 05:02 on Friday, April 11, 2003
 

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!

  Re: Submitting Iframes  Archive Import (JR) at 16:02 on Wednesday, August 27, 2003
 

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.

  Re: Submitting Iframes  Troy Wolf at 18:21 on Wednesday, August 27, 2003
 

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.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Submitting Iframes  valdamnit at 23:13 on Monday, August 28, 2006
 

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?

  Re: Submitting Iframes  S_Flex at 14:31 on Tuesday, August 29, 2006
 

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,








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Making Table Cell Fields Readonly
•  POSTING TOPIC IN FORUMS
•  ASP.NET Server side Clock
•  Add Hours to Javascript Calendar
•  Problem focusing contents of iframe
•  Dynamic crystal report generation
•  Input string was not in a correct format... pls help
•  Re: Help: Trouble with z-Index and SELECT lists
•  Redirecting the page


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006