heres what i do. place two div's in your tables wherever you need
locate, like this:

<div id="dummy1" style="position:absolute;"></div>
<div id="dummy2" style="position:relative;">content to locate</div>

find the position of the divs using either dynapi's inline extension or
whatever means you like. take the relDiv for ns4 and the absDiv for all
else. also for mac ie, offset by (10,15). like so:

var dummy,myLayer;
DynAPI.onLoad=function() {
         dummy=this.document.getAll()[is.ns4?"dummy2":"dummy1"];

         myLayer=new DynLayer();

         var adjustX=(is.platform=='mac' && is.ie ?10:0);
         var adjustY=(is.platform=='mac' && is.ie ?15:0);
         myLayer.moveTo(dummy.getPageX()+adjustX,dummy.getPageY()+adjustY);

         .....

         DynAPI.document.addChild(myLayer);
}
DynAPI.addResizeFunction('document.location.reload(true)');

ive been doing it like this for a while. if someone has a better idea,
id love to hear it.

a.g.h

James Musick wrote:

 >  As far as I can tell once you are trying to do positioning within a
 > table all bets are off. It seems to have to do with the cellspacing &
 > cellpadding...which results in the positioning element reporting an
 > incorrect position.
 >  If you have access to all the tables you can potentially make it work
 > by explicitly setting cellspacing and cellpadding to zero in all
 > cases, but that's not really a practical solution.
 >
 >  Additionally if you only have 'access' to a portion of a page (I'm
 > working on a JSP page and All I know is that my particular work is
 > going to show up 'somewhwere' on the page, but not where), you have
 > virtually no shot at getting the layer to position properly on both
 > browsers (again because this area will be inside tables and it seems
 > impossible to get the accurate x & y positions for it).
 >
 >  That's my experience thus far...and haven't found anything on the web
 > or gotten any advice to make positioning within tables work properly.
 >  -J
 >
 >> From: "Scott Prendergast" <[EMAIL PROTECTED]>
 >> To: <[EMAIL PROTECTED]>
 >> Subject: [Dynapi-Help] Dynapi layer positioning (help)
 >> Date: Thu, 4 Apr 2002 16:54:25 -0800
 >>
 >> I had an idea about relative positioning, and wanted to get some
 >> feedback...
 >>
 >> Would it be possible to display a 1 pixel image in a <td> cell, then
 >> use a script to locate the coordinates of the image, then plugin the
 >> position into the dynapi layer ?? Not sure about resizing, but would
 >> this work in theory ??
 >>
 >> Thanks,
 >> Scott
 >
 >
 >
 >
 >
 > _________________________________________________________________
 > Send and receive Hotmail on your mobile device: http://mobile.msn.com
 >
 >
 > _______________________________________________
 > Dynapi-Help mailing list
 > [EMAIL PROTECTED]
 > https://lists.sourceforge.net/lists/listinfo/dynapi-help
 >
 >




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

Reply via email to