Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
janetsmith  
#1 Posted : Tuesday, August 22, 2006 5:10:28 PM(UTC)
janetsmith

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?

Fedor  
#2 Posted : Wednesday, August 23, 2006 1:25:52 PM(UTC)
Fedor

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

Users browsing this topic
Guest
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.