Right.
After some considerable messing around, I have created a version of the
WURFL system that works on the LAMP server I use.

Well, I hope it does.

If you have a mobile browser and a few seconds of time, can you point it to
http://m.ukfree.tv  to verify if your device gets recognised please?

Thanks in advance...

2009/7/14 Dirk-Willem van Gulik <[email protected]>

> Try a search for UAProf and Wurfl. The latter is prolly simplest. It is a
> centrally maintained file. Fetch the XML file at
> https://sourceforge.net/projects/wurfl/files/ regularly - and preparse -
> or use the sample code.
>
> It basically contains somethng like
>
>  <device id="nokia_generic_series90_dp20" user_agent="Nokia 90 Developer
> Platform 2.0" fall_back="nokia_generic_series80_dp20">
>    <group id="product_info">
>      <capability name="nokia_series" value="90"/>
>      <capability name="nokia_edition" value="1"/>
>    </group>
>
> Followed by a 100 odd bits of extra info: like:
>
>    <group id="display">
>      <capability name="max_image_width" value="120"/>
>      <capability name="resolution_width" value="128"/>
>      <capability name="resolution_height" value="120"/>
>      <capability name="max_image_height" value="128"/>
>    </group>
>
> all the way to the downright obscure.
>
>    <group id="streaming">
>      <capability name="streaming_acodec_aac" value="lc"/>
>    </group>
>    <group id="deprecated">
>      <capability name="streaming_video_acodec_aac" value="true"/>
>    </group>
>  </device>
>  <device id="uptext_generic" user_agent="UP.Browser/4" fall_back="generic">
>    <group id="wml_ui">
>      <capability name="icons_on_menu_items_support" value="true"/>
>      <capability name="opwv_wml_extensions_support" value="true"/>
>      <capability name="built_in_back_button_support" value="true"/>
>      <capability name="proportional_font" value="true"/>
>      <capability name="wizards_recommended" value="true"/>
>      <capability name="softkey_support" value="true"/>
>
> Dw.
>
> (Who is now wondering if we should make this an even easier/'free-er'
> service on PAL & Forge).
>
> Brian Butterworth wrote:
>
>  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]
>> <mailto:[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] <mailto:[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 <http://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
>>
>
> -
> 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

Reply via email to