|
From: Ramesh P. <ra...@in...> - 2003-05-20 08:47:05
|
please see below:
Once upon a time not very long ago, Raymond Irving wrote:
>See below:
>
>--- Ramesh Pallikara <ra...@in...>
>
>
>><html>
>><head>
>><script language="JavaScript"
>>src="../src/dynapi.js"></script>
>><script language="Javascript">
>>dynapi.library.setPath('../src/');
>>dynapi.library.include('dynapi.api');
>></script>
>></head>
>><body>
>><script>
>>
>>
>
>>From my test it would seems that you have to wait
>until the page is fully loaded before you can get the
>width/height for the document in IE, correct? (should
>also be safe fo all browsers).
>
>dynapi.onLoad(function(){
>
>alert(dynapi.document.getWidth()+","+dynapi.document.getHeight());
>});
>
>--
>Raymond Irving
>
Ah, stupid of me, every example illustrates this and i still ask such a
stupid question :-[
thanx for your patience,
best regardz,
ramesh palikara
>
>
>
>></script>
>></body>
>></html>
>>
>>nothing much was just testing it on various
>>browsers, when i came across
>>this.
>>
>>is there an event fired after the body gets loaded
>>???
>>
>>best regardz
>>ramesh pallikara
>>
>>
>>
>>>--
>>>Raymond Irving
>>>
>>>--- Ramesh Pallikara <ra...@in...>
>>>wrote:
>>>
>>>
>>>
>>>
>>>>hi,
>>>>
>>>>i'm trying to get the client width and height
>>>>
>>>>
>>using
>>
>>
>>>>the following method
>>>>
>>>>dynapi.document.getWidth()
>>>>
>>>>works fine in ns and mozilla, but on IE shows the
>>>>following error
>>>>
>>>><warning message>
>>>>
>>>>"this.elm.clientWidth" is not an object
>>>>
>>>><warning message>
>>>>
>>>>guess it's coming from dyndocument.js
>>>>any solutions ???????
>>>>
>>>>best regardz,
>>>>ramesh pallikara
>>>>
--
QOTD:
Never criticise a man until you've walked a mile in his shoes.
Then you will be a mile away from him, and you will have his shoes.
|