An odd question for all you gurus.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Doug_Anderson
Posted On:   Wednesday, September 25, 2002 02:47 PM

I am afraid that I a NOT a java guru... so I am wondering if anyone can help me with this. Is it possible to write a java applet or something that would be able to deduce the height in pixels of its containing unit? Something like: The height of this div is: 200px sorry if that didn't come out as planned... but can anyone tell me if this is even possible in java or another language? -note also that this div element is dynamic so it will -change depending on the text size and stuff... Thanks in advance! -Doug    More>>

I am afraid that I a NOT a java guru... so I am wondering
if anyone can help me with this. Is it possible to write
a java applet or something that would be able to deduce

the height in pixels of its containing unit?



Something like:







The height of this div is: 200px





sorry if that didn't come out as planned... but can anyone
tell me if this is even possible in java or another language?

-note also that this div element is dynamic so it will

-change depending on the text size and stuff...


Thanks in advance!


-Doug

   <<Less

Re: An odd question for all you gurus.

Posted By:   Brian_Glodde  
Posted On:   Wednesday, September 25, 2002 09:19 PM

You should be able to get the value to the applet using javascript. Hopefully this snippet will help illustrate:



....










...
About | Sitemap | Contact