From: Raymond I. <xw...@ya...> - 2003-05-19 16:06:05
|
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 > </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: > >> "I've always wanted to work in the Federal Mint. > >>And then go on > >> strike. To make less money." > >> > >> > >> > >> > >> > >> > >> > >------------------------------------------------------- > > > > > >>This SF.net email is sponsored by: If flattening > out > >>C++ or Java > >>code to make your application fit in a relational > >>database is painful, > >>don't do it! Check out ObjectStore. Now part of > >>Progress Software. > >>http://www.objectstore.net/sourceforge > >>_______________________________________________ > >>Dynapi-Dev mailing list > >>Dyn...@li... > >> > >> > >> > >http://www.mail-archive.com/dyn...@li.../ > > > > > >__________________________________ > >Do you Yahoo!? > >The New Yahoo! Search - Faster. Easier. Bingo. > >http://search.yahoo.com > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: If flattening > out C++ or Java > >code to make your application fit in a relational > database is painful, > >don't do it! Check out ObjectStore. Now part of > Progress Software. > >http://www.objectstore.net/sourceforge > >_______________________________________________ > >Dynapi-Dev mailing list > >Dyn...@li... > >http://www.mail-archive.com/dyn...@li.../ > > > > > > > -- > > 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. > > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |