Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread Rogan Creswick
On Fri, Aug 7, 2009 at 2:37 PM, Joe Pruett wrote: >>> According to the Jquery docs at http://docs.jquery.com/CSS/height: >>> >>> $(window).height();   // returns height of browser viewport >>> $(document).height(); // returns height of HTML document >>> >>> Is that what you're looking for? >> >> I

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread Joe Pruett
>> According to the Jquery docs at http://docs.jquery.com/CSS/height: >> >> $(window).height(); // returns height of browser viewport >> $(document).height(); // returns height of HTML document >> >> Is that what you're looking for? > > I do not believe this will give you the right numbers. I ge

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread drew wymore
What you're looking for is viewport height/width. I'm not in front of a box right now to see if jQuery has some such function to grab that info. Drew On 8/7/09, Keith Lofstrom wrote: > I want to make my wydiwys presentation tool autoscale single > images to the browser window. I want to fill as

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread ckonstanski
> According to the Jquery docs at http://docs.jquery.com/CSS/height: > > $(window).height(); // returns height of browser viewport > $(document).height(); // returns height of HTML document > > Is that what you're looking for? I do not believe this will give you the right numbers. I get 1680x10

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread ckonstanski
> I want to make my wydiwys presentation tool autoscale single > images to the browser window. I want to fill as much of the > window as I can, while preserving the image aspect ratio. > The math is easy, but learning the pixel height of the inside > of the browser window is surprisingly difficult

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread Aaron Jorbin
According to the Jquery docs at http://docs.jquery.com/CSS/height: $(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document Is that what you're looking for? On 8/7/09, Keith Lofstrom wrote: > I want to make my wydiwys presentation tool

Re: [PLUG] Browser window height, javascript, jquery

2009-08-07 Thread Joe Pruett
i think you can use things like: $(window).height() $(window).width() to find the size of the page. window is a literal variable name, not something you replace. ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/

[PLUG] Browser window height, javascript, jquery

2009-08-07 Thread Keith Lofstrom
I want to make my wydiwys presentation tool autoscale single images to the browser window. I want to fill as much of the window as I can, while preserving the image aspect ratio. The math is easy, but learning the pixel height of the inside of the browser window is surprisingly difficult. I am u