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
>> 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
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
> 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
> 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
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
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/
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