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>
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 post(s)
|
|
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
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.