[JavaScript] Getting element coordinates.

Walter Torres walter at torres.ws
Tue Nov 18 15:56:51 CST 2003


> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Chris Tifer
> Sent: Tuesday, November 18, 2003 1:02 PM
> To: [JavaScript List]
> Subject: Re: [Javascript] Getting element coordinates.
>
>
> I'm pretty sure you're not going to have any luck dragging an object from
> one window to another window unless some of the restrictions have been
> relaxed.  If I remember correctly right now, you can't even get a DIV to
> overlay multiple frames. I might be wrong though as this was quite a long
> time ago (in DHTML-terms) that this was the case.

As of my last large project, Summer 2002, nothing could cross frame
boundaries (and I'm not referring to data).

We had a need to place a menu structure across the top and have it pull down
the screen. But we couldn't get it to display across the frame boundary. We
faked it by having the main menu control in one frame and all the menu pull
downs in another. cross-frame control worked fine.

Now, as to DRAG an object across a frame: the only way I can think of (off
the top of my head) is to acquire all the Object attributes, generate
another Object all the sub-frames that this could move into to, track the
mouse, and have all these Object move in unison in and out of view of their
respective frames, making it look like a single object moving around.

This might be a nice little experiment to try one afternoon.

Walter





More information about the Javascript mailing list