WaltS wrote:

> On 03/02/2013 11:30 AM, Beauregard T. Shagnasty wrote:
>> WaltS wrote:
>>> Rick Merrill wrote:
>>>> Geoff Welsh wrote:
>>>>> Rick Merrill wrote:
>>>>>> How do I get SM & my webpage to detect whether the user
>>>>>> client/browser is a mobile phone and display a different URL?
>>>>>>
>>>>>> Thanks in advance...
>>>>>
>>>>> You are a user, SM contains a browser on a device you
>>>>> could/would/are using.
>>>>>
>>>>> However, using CSS, a web page can display differently to a browser
>>>>> on a mobile phone, vs a browser on a regular computer.
>>>>>
>>>>> That's a question for a CSS group, not SM users/designers.
>>>>
>>>> Ok, (one has to start somewhere)
>>>>
>>>> So where is a good CSS group?
>>>
>>> comp.infosystems.www.authoring.stylesheets
>>
>> That's the group I would suggest for CSS questions as well. However,
>> the original question is how to detect the User Agent. Only a scripting
>> language, such as PHP, could do that. For example, the value of:
>>
>> $ua = $_SERVER["HTTP_USER_AGENT"];
>>
>> ..followed by a switch or a if/elseif/endif type construct to set a
>> header redirect. HTML and CSS aren't programmable to be able to
>> identify a UA.
> 
> The original question is a bit confusing to me.

I'd agree with that...

> I understand the web page part, but why would the OP want SeaMonkey to
> detect whether the client/browser is a mobile phone.

No real reason I can think of. Occasionally there can be a need for the 
web-hosting server to know what the UA is, though. 

I have Chris Pederick's User Agent Switcher extension installed, and do 
sometimes set it to spoof as a phone .. just to see what happens. Most of 
the time:  nothing.

<http://chrispederick.com/work/user-agent-switcher/>

-- 
   -bts
   -This space for rent, but the price is high
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to