jQuery provides the following booleans....

jQuery.browser.msie
or
jQuery.browser.mozilla

> > Is this considered bad practice and if so how might you do it better?

That really depends on why you're doing it.
If you want it to be different then go ahead.
If you just can't get it to be the same without making it different
then I would suggest that looking at your doctype, markup and styles
might have solved it ... but it usually takes a lot of effort! (And
very occasionally it can't be solved!)

On Oct 25, 7:57 pm, cfdvlpr <[EMAIL PROTECTED]> wrote:
> Maybe this is best done with server side code such as this in
> Coldfusion?
> <cfif CGI.HTTP_USER_AGENT contains 'msie'>
>
> On Oct 25, 10:48 am, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
> > I want to test if the browser is ie or firefox and then set the width
> > and height of a thickbox differently depending on this.  Is this
> > considered bad practice and if so how might you do it better?

Reply via email to