You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Charith Madusanka <ch...@gmail.com> on 2010/09/19 09:44:11 UTC
Page Layout
I want page width and hight how I get it?
Re: Page Layout
Posted by Dmitry Gusev <dm...@gmail.com>.
You can search for string
// Get document width or height
in jQuery source: http://code.jquery.com/jquery-1.4.2.js
On Sun, Sep 19, 2010 at 12:06, Dmitry Gusev <dm...@gmail.com> wrote:
> Take a look at implementation details of width/height in jQuery:
>
> $(document).width();
> $(document).height();
>
> This should give you what you want.
>
> See also:
> http://stackoverflow.com/questions/838137/jquery-change-height-based-on-browser-size-resize
>
> On Sun, Sep 19, 2010 at 11:44, Charith Madusanka <ch...@gmail.com>wrote:
>
>> I want page width and hight how I get it?
>>
>
>
>
> --
> Dmitry Gusev
>
> AnjLab Team
> http://anjlab.com
>
--
Dmitry Gusev
AnjLab Team
http://anjlab.com
Re: Page Layout
Posted by Dmitry Gusev <dm...@gmail.com>.
Take a look at implementation details of width/height in jQuery:
$(document).width();
$(document).height();
This should give you what you want.
See also:
http://stackoverflow.com/questions/838137/jquery-change-height-based-on-browser-size-resize
On Sun, Sep 19, 2010 at 11:44, Charith Madusanka <ch...@gmail.com>wrote:
> I want page width and hight how I get it?
>
--
Dmitry Gusev
AnjLab Team
http://anjlab.com
Re: Page Layout
Posted by Stephan Windmüller <st...@tu-dortmund.de>.
On 19.09.2010 10:11, Dmitry Gusev wrote:
> There only around 2-3% of clients with JS disabled.
Where do you get those numbers?
> If you want to support them you could simply redirect them to mobile/non-JS
> version of your site (like gmail and many others do).
Then you have to design and maintain two seperate versions of your site.
> In my projects I always count on JS assuming its enabled in client browser.
In my opinion, a website should be usable completely without JavaScript,
adding more comfort with JS where needed.
But this is not a Tapestry issue. Please direct further answers to my
address, not the list.
- Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Page Layout
Posted by Dmitry Gusev <dm...@gmail.com>.
There only around 2-3% of clients with JS disabled.
If you want to support them you could simply redirect them to mobile/non-JS
version of your site (like gmail and many others do).
In my projects I always count on JS assuming its enabled in client browser.
On Sun, Sep 19, 2010 at 11:56, Stephan Windmüller <
stephan.windmueller@tu-dortmund.de> wrote:
> On 19.09.2010 09:44, Charith Madusanka wrote:
>
> I want page width and hight how I get it?
>>
>
> The only way to determine the current page width and height is JavaScript.
> But do not count on it, there are already too many sites out there with a
> broken layout when JS is disabled.
>
> Instead you should use a layout which works at nearly any resolution.
>
> - Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Dmitry Gusev
AnjLab Team
http://anjlab.com
Re: Page Layout
Posted by Stephan Windmüller <st...@tu-dortmund.de>.
On 19.09.2010 09:44, Charith Madusanka wrote:
> I want page width and hight how I get it?
The only way to determine the current page width and height is
JavaScript. But do not count on it, there are already too many sites out
there with a broken layout when JS is disabled.
Instead you should use a layout which works at nearly any resolution.
- Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org