I partially figured out the difficulties I was having before...I didn't
realize that inline.js was actually making 'normal' javascript objects into
DynAPI objects (and thus giving the getX() methods). Now the examples that I
was seeing make much more sense.
My layer now seems to work nicely with Netscape, but not with IE!! A
simplified version is included below...in IE the layer shows up below the
table. The idea is for the layer to be dropped into a particular <td>.
Unfortunately the layer shows up quite a bit below the table in IE.
Anyone see the problem? Or have a fix suggestion?
Thank you much,
James
----------------------
in head (in script tags, of course):
DynAPI.setLibraryPath('script/dynapi/src/lib/')
DynAPI.include('dynapi.api.browser.js')
DynAPI.include('dynapi.api.dynlayer.js')
DynAPI.include('dynapi.api.dyndocument.js')
DynAPI.include('dynapi.ext.inline.js')
var xPos;
var yPos;
var pagexPos;
var pageyPos;
DynAPI.onLoad = function()
{
var layer1 = this.document.all['layer1'];
xPos = layer1.getPageX();
yPos = layer1.getPageY();
alert(xPos + ":" + yPos);
var dataLayer1 = new DynLayer(dataLayer1, xPos, yPos, 30, 20,
"#c0c0c0","visible");
dataLayer1.setHTML("foo");
DynAPI.document.addChild(dataLayer1);
}
in body:
table border=1
tr
<td> row1</td>
<td> r1 cell 2</td>
<td> r1 cell 2</td>
<td> r1 cell 2</td>
/tr
tr
<td> row2</td>
<td> r2 cell 2</td>
<td> r2 cell 2</td>
<td> r2 cell 2</td>
/tr
tr
<td> row3</td>
<td> r3 cell 2</td>
<td> r3 cell 2</td>
<td><div id="layer1" style="position:relative;"></div></td>
/tr
/table
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help