hello, i'm trying to use this (really interesting) set
of JavaScript modules but can't figure how to get div
height under IE5.5+
this getClipH function works well under both Netscape
(unix+Win32) but always returns 0 under IE...
is it a bug or am I doing things wrong ?
by the way, i didn't find any documentation to learn
how to use these modules... is there any draft or doc i
didn't find available ?
last question, i wrote ny my side some Perl/JavaScript
modules that handle trees (like win explorer tree
view)...
my code only worked under netscape/unix and i got pb
under others platforms/browsers.
are u planning to write or add a jsui-tree.js in your
packages ?
i'll try to rewrite my code with your modules
arch/specifications... if i get it to work, are you
interested in getting it ?
thx for reading.
here the code I wrote to test the jsui-common:
__CODE__
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML><HEAD><TITLE>test jsui</TITLE>
<SCRIPT SRC="/cgi-js/jsui-common.js"
LANGUAGE="JavaScript">
</SCRIPT>
</HEAD><BODY NOSAVE="1"><H1>test
jsui</H1><SCRIPT
LANGUAGE="JavaScript">
//jsui.debug.add("");
var c = jsui.common.addCSS('idtestdiv1');
c.visibility = 'hidden';
c.bgColor = '#AABBCC';
d1 = jsui.common.addDIV('idtestdiv1');
d1.addHTML('<h1>toto1</h1><h1>lignedudessous</h1>')
;
c = jsui.common.addCSS('idtestdiv2');
c.visibility = 'hidden';
c.bgColor = '#CCBBAA';
d2 = jsui.common.addDIV('idtestdiv2');
d2.addHTML('<h1>toto2</h1>');
jsui.debug.add("/***/");
jsui.ns4.build();
jsui.init();
jsui.debug.add("/***/");
d1.moveTo(100,300);
d2.moveTo(d1.getLeft(),d1.getTop()+d1.getClipH());
d1.show();
d2.show();
for (i=0; i<jsui.common.divs.length; i++)
{
with (jsui.common.divs[i])
{
document.write(id+":getClipW="+getClipW()+"<br>")
;
document.write(id+":css.height="+css.height+"<br>"
;);
document.write(id+":css.clip.height="+css.clip.height+"<b
r>");
}
}
for (i=0; i<jsui.debug.log.length; i++)
{
document.write(jsui.debug.log[i]+"<br>");
}
</SCRIPT>
</BODY></HTML>
Nobody/Anonymous ( nobody ) - 2002-09-20 15:54
7
Open
None
Robert Grimm
Common Module
v2.xx
Public
|
Date: 2002-09-20 22:00 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| priority | 5 | 2002-09-20 22:00 | faithful |
| assigned_to | nobody | 2002-09-20 22:00 | faithful |