reference local frame object from frameset

A

Andrew Poulos

In a page that's in a frame ('mainFrame') I'm creating a new object

var ft = new FTobj();

and from the frameset I'm trying to reference this object but I keep
getting 'undefined'. I've tried:

window.frames['mainFrame'].ft
window.frames['mainFrame'].window.ft
window.frames['mainFrame'].document.ft
window.frames['mainFrame'].window.document.ft

I know the object exists because it calls a function in the frameset
that later tries to call a method of the object.

I don't understand what I'm doing wrong. How can a frameset reference an
object created in a frame?

Andrew Poulos
 
A

Andrew Poulos

Andrew said:
In a page that's in a frame ('mainFrame') I'm creating a new object

var ft = new FTobj();

and from the frameset I'm trying to reference this object but I keep
getting 'undefined'. I've tried:

Dang, I posted and then realised that it was a scoping issue.

Andrew Poulos
 

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

Forum statistics

Threads
474,261
Messages
2,571,041
Members
48,769
Latest member
Clifft

Latest Threads

Top