On Fri, Sep 26, 2008 at 12:15 PM, Charles F. Munat <[EMAIL PROTECTED]> wrote:

>
> Ah, I forgot that you were talking server-side. Hmm. I'll have to think
> about this.
>
> For mobile browsers, are you talking ones that use WML? (Does anyone
> still use that?) For something like that, I think you could use the
> Accept HTTP header. User Agent is going to be very tricky.
>

Perhaps you want to have a more light-weighted page for mobile consumers?


>
> But for something like this, shouldn't you send a default button
> (assuming JS is off), and then a JS script that does the object
> detection client-side and replaces the button with an image button? I'm
> not clear -- why do you want to do the detection server-side?
>
> Chas.
>
> Marius wrote:
> > Charles ... this is not only about JS level. One may simply click a
> > link or submit a simple form (with NO JS involved) and lift should
> > probably be aware of browser type it can correct some browser specific
> > idiosyncrasies in the resulting markup. Certain applications may need
> > for instance to detect if a mobile browser is used instead of a PC
> > browser.
> >
> > I don't think there is some other option then user-agent. But user-
> > agent can be used today in lift but I agree that a higher abstraction
> > is needed.
> >
> > P.S.
> > At JS level, yeah object detection sounds really good.
> >
> > Br's,
> > Marius
> >
> > On Sep 26, 12:25 pm, "Charles F. Munat" <[EMAIL PROTECTED]> wrote:
> >> Browser detection is a really bad idea, and I would recommend avoiding
> >> it at all costs. A much better solution is object detection.
> >>
> >> Here's one pretty good description about why this is so:
> >>
> >> http://developer.apple.com/internet/webcontent/objectdetection.html
> >>
> >> Here's another:
> >>
> >> http://www.quirksmode.org/js/support.html
> >>
> >> And one more (for the unconvinced :-)
> >>
> >> http://www.evotech.net/blog/2007/07/browser-detection-versus-object-d.
> ..
> >>
> >> Chas.
> >>
> >> Tim Perrett wrote:
> >>> Am I being dumb here - could we not just run some checks on the user-
> >>> agent header and respond appropriately?
> >>> It would be very cool if SHtml was browser aware.
> >>> Cheers
> >>> Tim
> > >
>
> >
>


-- 
Viktor Klang
Senior Systems Analyst

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to