...

View Full Version : Query Textfield in Frame. Firefox wont work! IE it works!



SirBandito
07-11-2005, 02:41 PM
Hi,

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

Here is a overview:


<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:


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


I get in Firefox the following error:


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

Bill Posters
07-11-2005, 03:20 PM
onClick="alert(parent.frames['mainFrame'].frames['mainframe2'].document.forms['formname'].textfield.value);"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum