Question about detecting client browser

  • Thread starter Thread starter Armand
  • Start date Start date
A

Armand

Hi,
I am trying to implement a way to detect client browser,
basically if it is not IE then I will display a msg saying "you need to
use IE"

do you think I should use JS?

does anyone know any goodsource?


Thanks a lot, I really appreciate all your help
 
HttpBrowserCapabilities just looks at the agent string, so it not as
reliable as client script. For instance opera will send the IE agent string
on demand by the user.

-- bruce (sqlwork.com)
 
Hi,
I am trying to implement a way to detect client browser,
basically if it is not IE then I will display a msg saying "you need to
use IE"

Why do you need to do this? It's a really good way to annoy people who
don't use IE.
do you think I should use JS?

I think you should learn to write cross-browser pages!! Maybe you have
some really good reason for insisting that your visitors use IE, but I
can't imagine what that could be.
 
anyhow there is an incompatibility from the app that I develop with
browser other than IE
I hope the firefox will have this fixed in their new version,
below is more detail prob that I faced:
//javascript
function
{
var ttl =
event.srcElement.options[event.srcElement.selectedIndex].value;
__doPostBack("ChangeSegment", QITNUM + ";" + ttl);
}

It doesn't execute post back on browser other than IE.
 
anyhow there is an incompatibility from the app that I develop with
browser other than IE
I hope the firefox will have this fixed in their new version,
below is more detail prob that I faced:
//javascript
function
{
var ttl =
event.srcElement.options[event.srcElement.selectedIndex].value;
__doPostBack("ChangeSegment", QITNUM + ";" + ttl);
}

It doesn't execute post back on browser other than IE.

Is this code generated by the framework, or did you write it? If the
framework generated it, then you should report it as a bug to Microsoft
as they claim the framework emits code that will work in all modern
browsers.

Either way, I suspect this is not a bug in FF as it is a far superior
browser to IE. If you are convinced it's a bug in FF, then report the
bug to them and it will get fixed pretty quickly. They are very good
about that sort of thing.

Also, did you test it in other browsers? If it doesn't work in Opera,
Safari, etc, then it sounds more like an MS-proprietary feature than
proper Javascript, in which case the fault lies at MS's door, not FF's.

Ta ra
 
Thanks for your reply,
do you know to whom should I report this bug to FF? (the contact)


Alan said:
anyhow there is an incompatibility from the app that I develop with
browser other than IE
I hope the firefox will have this fixed in their new version,
below is more detail prob that I faced:
//javascript
function
{
var ttl =
event.srcElement.options[event.srcElement.selectedIndex].value;
__doPostBack("ChangeSegment", QITNUM + ";" + ttl);
}

It doesn't execute post back on browser other than IE.

Is this code generated by the framework, or did you write it? If the
framework generated it, then you should report it as a bug to Microsoft
as they claim the framework emits code that will work in all modern
browsers.

Either way, I suspect this is not a bug in FF as it is a far superior
browser to IE. If you are convinced it's a bug in FF, then report the
bug to them and it will get fixed pretty quickly. They are very good
about that sort of thing.

Also, did you test it in other browsers? If it doesn't work in Opera,
Safari, etc, then it sounds more like an MS-proprietary feature than
proper Javascript, in which case the fault lies at MS's door, not FF's.

Ta ra
 
Thanks for your reply,
do you know to whom should I report this bug to FF? (the contact)

First check it really is a bug. There's no point in reporting it if it
isn't.

You didn't answer any of my questions. If you would provide some more
info, we might be able to help you better. It could be a simple mistake
you've made in the code which can be fixed easily.
Alan said:
anyhow there is an incompatibility from the app that I develop with
browser other than IE
I hope the firefox will have this fixed in their new version,
below is more detail prob that I faced:
//javascript
function
{
var ttl =
event.srcElement.options[event.srcElement.selectedIndex].value;
__doPostBack("ChangeSegment", QITNUM + ";" + ttl);
}

It doesn't execute post back on browser other than IE.

Is this code generated by the framework, or did you write it? If the
framework generated it, then you should report it as a bug to Microsoft
as they claim the framework emits code that will work in all modern
browsers.

Either way, I suspect this is not a bug in FF as it is a far superior
browser to IE. If you are convinced it's a bug in FF, then report the
bug to them and it will get fixed pretty quickly. They are very good
about that sort of thing.

Also, did you test it in other browsers? If it doesn't work in Opera,
Safari, etc, then it sounds more like an MS-proprietary feature than
proper Javascript, in which case the fault lies at MS's door, not FF's.

Ta ra
Alan Silver wrote:
Hi,
I am trying to implement a way to detect client browser,
basically if it is not IE then I will display a msg saying "you need to
use IE"

Why do you need to do this? It's a really good way to annoy people who
don't use IE.

do you think I should use JS?

I think you should learn to write cross-browser pages!! Maybe you have
some really good reason for insisting that your visitors use IE, but I
can't imagine what that could be.

does anyone know any goodsource?


Thanks a lot, I really appreciate all your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top