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

Notification

Icon
Error

Options
Go to last post Go to first unread
solomodels  
#1 Posted : Tuesday, April 22, 2008 4:36:29 AM(UTC)
solomodels

Rank: Newbie

Groups: Member
Joined: 4/22/2008(UTC)
Posts: 2

Is there a sample javascript for detecting image uploader version 5?

The old script doesn't seem to work when I change Aurigma.ImageUploader.4 to Aurigma.ImageUploader.5

Thank you.

<script language="JavaScript">

<!--

//Image Uploader detection

if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {

document.writeln('<scr' + 'ipt language="VBscript">');

document.writeln('Function supportImageUploader()');

document.writeln(' If ScriptEngineMajorVersion >= 2 Then');

document.writeln(' On Error Resume Next');

document.writeln(' supportImageUploader = "NotInstalled"');

document.writeln(' Dim installed');

document.writeln(' installed = False');

document.writeln(' installed = IsObject(CreateObject("Aurigma.ImageUploader.4"))');

document.writeln(' If installed Then');

document.writeln(' supportImageUploader = "Installed"');

document.writeln(' End If');

document.writeln(' Else');

document.writeln(' supportImageUploader = "Unsupported"');

document.writeln(' End If');

document.writeln('End Function');

document.writeln('</scr' + 'ipt>');

}

else {

// platform unsupported

// top.location.href = 'indexbf.cfm?ffail=unsupported';

top.location.href = 'indexbj.cfm';

}

var sSupportImageUploader = supportImageUploader();

if (sSupportImageUploader=='Unsupported'){

// platform unsupported (secondary check)

// top.location.href = 'indexbf.cfm?ffail=unsupported';

top.location.href = 'indexbj.cfm';

}

else if (sSupportImageUploader=='NotInstalled'){

top.location.href = 'indexbf.cfm?ffail=notinstalled';

}

else {

// supported platform and installed (do nothing)

}

//-->

</script>

Eugene Kosmin  
#2 Posted : Tuesday, April 22, 2008 12:46:57 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 505

Was thanked: 41 time(s) in 41 post(s)
Hello,

Please read the following topic: Script to detect ImageUploader47.

In other words, we changed ProgIds of Image Uploader since changing CLSIDs.

Best regards,

Eugene Kosmin

The Aurigma Development Team

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.