The problem I had with Javascript before was that quite a lot of time it is disabled, and that it is usually better with mobile devices to sort all the formatting out on the server, as almost every mobile browser I know sucks.
2009/7/14 Richard Lockwood <[email protected]> > Maybe I've missed the point here, but: > > <script type="text/javascript"> > document.write(screen.width+'x'+screen.height); > </script> > > Or is that not reliable? > > Cheers, > > R. > > On Tue, Jul 14, 2009 at 3:09 PM, Brian Butterworth<[email protected]> > wrote: > > Hi, > > I've been looking at adapting some sites to work better on mobile > devices. > > I can do the stripping down everything to text and minimal graphics and > so > > on, that's the easy bit. > > Does anyone know of anything reliable that can tell me the width in > pixels > > of the device? > > I was hoping that Glow would cover this, but it does't. > > -- > > > > Brian Butterworth > > > > follow me on twitter: http://twitter.com/briantist > > web: http://www.ukfree.tv - independent digital television and > switchover > > advice, since 2002 > > > - > Sent via the backstage.bbc.co.uk discussion group. To unsubscribe, please > visit http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html. > Unofficial list archive: > http://www.mail-archive.com/[email protected]/ > -- Brian Butterworth follow me on twitter: http://twitter.com/briantist web: http://www.ukfree.tv - independent digital television and switchover advice, since 2002

