Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Query Textfield in Frame. Firefox wont work! IE it works!

    Hi,

    i have a little problem. I have two pages with a frameset one is load in the others frameset.

    Here is a overview:
    Code:
    <frameset>
      <topframe>
        <BUTTON>
      </topframe>
      <mainframe>
        <frameset2>
           <leftframe>
           <leftframe>
           <mainframe2>
             <form formname>
               <input textfield>
             </form formname>
           </mainframe2>
         </frameset2>
       </mainframe>
    <frameset>

    I want to Click on the button in the top frame and get the var out of the textfield in the mainframe2.

    This works with the Internet Explorer:

    Code:
    alert(parent.frames["mainFrame"].document.frames["mainframe2"].formname.textfield.value)

    I get in Firefox the following error:

    Code:
    Error: parent.frames.mainFrame.document.frames has no properties
    How can i get this to work on Firefox? Any Idea?

    I have created an example!!

    http://www.linux-welt.de/frametest/

    Take a look with IE it works quite good. But with the Firefox you will get the following error:

    Error: parent.frames.mainFrame.document.frames has no properties

    Can someone help me out? Its really important for me, my whole project depends on it...



    Thanks a million!

    SirBandito

  • #2
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Code:
    onClick="alert(parent.frames['mainFrame'].frames['mainframe2'].document.forms['formname'].textfield.value);"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •