Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
How to detect browser type and display responding msg?
Rank: Member
Groups: Member
Joined: 2/1/2006(UTC) Posts: 40
|
Hi, I only purchase Activex version of IU. I want to display message: "Please use IE to use the Uploader" when the user is using Non-IE browser. How to do that?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 post(s)
|
Quote:janetsmith (8/23/2006)Hi, I only purchase Activex version of IU. I want to display message: "Please use IE to use the Uploader" when the user is using Non-IE browser. How to do that? In iuembed.js script there is following code: Code:function __Browser(){
var a=navigator.userAgent.toLowerCase();
this.isOpera=(a.indexOf("opera")!=-1);
this.isKonq=(a.indexOf('konqueror')!=-1);
this.isSafari=(a.indexOf('safari')!=-1)&&(a.indexOf('mac')!=-1);
this.isKhtml=this.isSafari||this.isKonq;
this.isIE=(a.indexOf("msie")!=-1)&&!this.isOpera;
this.isWinIE=this.isIE&&(a.indexOf("win")!=-1);
this.isCSS1Compat=(!this.isIE)||(document.compatMode&&document.compatMode=="CSS1Compat");
}
var __browser=new __Browser();
So way you can use the following script for your task: Code:if (!__browser.isWinIE)
{
alert("Please use IE to use the Uploader");
}
Edited by user Tuesday, February 19, 2008 1:08:17 PM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
How to detect browser type and display responding msg?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.