From: Ramesh P. <ra...@in...> - 2003-05-17 13:17:50
|
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." |
From: Raymond I. <xw...@ya...> - 2003-05-19 12:48:24
|
Firstly do you have the lastest version from CVS? Could you please provide a working example? -- 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 |
From: Ramesh P. <ra...@in...> - 2003-05-19 13:43:41
|
Once upon a time not very long ago, Raymond Irving wrote: >Firstly do you have the lastest version from CVS? > nope, :-( unfortunately, i'm behind a firewall, so i'm still testing on doug's alpha build. > >Could you please provide a working example? > <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> alert(dynapi.document.getWidth()+","+dynapi.document.getHeight()); </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. |
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 |
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. |
From: Raymond I. <xw...@ya...> - 2003-05-20 13:26:33
|
Hello Everyone, I've added a logos module to the CVS. You can now checkout/update all the dynapi logos from CVS. -- Raymond Irving __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |