On Thu, Sep 25, 2008 at 6:05 AM, Derek Chen-Becker <[EMAIL PROTECTED]>wrote:

> jQuery has the jquery.browser and other user agent methods (under the
> utilities section of the docs: http://docs.jquery.com/Utilities). If
> that's not enough, there's this under the MIT license:
>
> http://davecardwell.co.uk/javascript/jquery/plugins/jquery-browserdetect/
>

I was thinking something server-side so we can create appropriate HTML for
the browsers.


>
> Derek
>
>
> On Thu, Sep 25, 2008 at 6:06 AM, David Pollak <[EMAIL PROTECTED]> wrote:
>
>>
>>
>>
>> Tim Perrett wrote:
>> > Hey guys,
>> >
>> > Just a quick issue (or what seems to be an issue) that i've come
>> > accross. If you do the following:
>> >
>> > SHtml.submit("Register", save) % ("type" -> "image")
>> >                                              % ("src" -> "img/button-
>> > submit-registration.gif")
>> >
>> > For instance, it works no problem in webkit powered browsers (FF,
>> > Safari, NS etc)
>> Just to be a little anal, FF is a Gecko-based browser and Gecko != WebKit
>>
>> >  but in IE there appears to be an issue. Now then, at
>> > first, I thought it was a browser issue, but I came accross this:
>> >
>> > http://www.twoscomplement.com/2007/11/19/image-submit-in-ie-6/
>> >
>> > and wondered, as i've changed the "type" of the element to "image",
>> > would lift then not process it? type="image" should behave exactly as
>> > type="submit" right? It appears to do the form post perfectly well but
>> > as you'll see from that link it doesn't post the value of the form
>> > submit, so could this possibly be making it go screwy?
>> >
>> > IMHO, it also feels messy setting those kind of presentation
>> > attributes in the snippet - Ideally you would want to let designers
>> > choose if it was a regular style submit button, or an image. Using
>> > attributes perhaps? (where :form: is the bound namespace)
>> >
>> > <form:save type="image" src="images/bbbbb.gif" />
>> >
>> I think we need some browser detection in Lift.  Does anyone know of
>> some open source (Apache licensed or MIT/BSD licensed) browser detection
>> code?
>>
>> We could add a method to SHtml that "does the right thing" to create an
>> image submit depending on the browser type.
>>
>> Thanks,
>>
>> David
>>
>> PS -- I've run into the problem... I created an <img ...
>> onclick="do_form_submit_code_here" />  It's a little hacky, but it works.
>>
>>
>> > Cheers
>> >
>> > Tim
>> > >
>> >
>>
>>
>>
>>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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