I could be misstaken, but I think NS
lieks you to use the frames array

top.frames['frame1'].document.functionname

I don't think you can access elements directly, but you can call a function
in the frame that does what you need locally..

like,
top.frames['frame1'].document.ExecCode("whateverLayer.moveTo(x,y);");

function ExecCode(arg){
    if (arg) eval(arg);
}


If this does not work, it will be damned close..

This is what I had to do to make my first shopping cart app work oh so long
ago.


----- Original Message -----
From: "Nuno Ferreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 5:59 PM
Subject: [Dynapi-Help] Calling a function in another frame in NS...


> Hi Guys,
>
> I'm building a site, using DynAPI in frames.
> That is, I have the DynAPI load into a hidden frame and then
> building all the layers in another frame.
>
> But (there's always a but), I discovered (DUH!) that to move
> a layer in a function that is called for instance from a <a href> tag
> I need to call the dom to that frame:
>
> top.framename.whateverLayer.moveTo(x,y);
>
> This line is ok in Explorer, but in Netscape it doesn't work...
>
> any ideas?
> Am I missing something here? (probably)...
>
> NunoF
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to