myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Mitev" <adrian.mi...@googlemail.com>
Subject Re: How to get client browser's resolution.
Date Wed, 03 Jan 2007 22:49:40 GMT
Yes! But i'm wondering how the get it before rendering the first page.

2007/1/3, Volker Weber <weber.volker@googlemail.com>:
>
> Here is the tobago code:
>
>       var clientDimension
>           = this.createInput("hidden", this.form.id + '-clientDimension');
>       clientDimension.value
>           = document.body.clientWidth + ";" + document.body.clientHeight;
>       this.form.appendChild(clientDimension);
>
> Regards,
>   Volker
>
> 2007/1/3, Adrian Mitev <adrian.mitev@googlemail.com>:
> > I saw the tobago code. There they have a function for getting the
> browser's
> > resolution.
> >
> > 2007/1/3, Gilles Demarty <gilles.demarty@gmail.com >:
> > > Hi adrian,
> > >
> > > a Css Solution :
> > >
> > > http://alistapart.com/articles/switchymclayout
> > >
> > > hope this help.
> > > Not really related to myfaces, tough.
> > >
> > > Gilles
> > >
> > > 2007/1/3, Adrian Mitev <adrian.mitev@googlemail.com >:
> > > > Hi all! I want to get the width and height of the client brower and
> show
> > > > different css styles according to the size. Any suggestions how to
> do
> > it?
> > >
> >
> >
>

Mime
View raw message