View Single Post
Old 24th November 2008, 07:05   #9
clementj
Senior Member
 
Join Date: Oct 2006
Posts: 357
There was a timing error. Now it all works.
getwidth() returns either the actual width or "w" if it is defined.

The call to getwidth must be done after the onscriptloaded(). So it must be done by a timer. The ontimer happened after onresize(), and the onresize was setting "w".

Thanks for the tips.
clementj is offline   Reply With Quote