Welcome Guest Search | Active Topics | Members

Opera Support Options
josh
Posted: Tuesday, July 26, 2005 8:52:00 AM
Rank: Member
Groups: Member

Joined: 7/26/2005
Posts: 9
Points: 6
If Image Uploader is embedded with support for ActiveX and Java, it does not work with the default install for Opera. By default Opera identifies its self as MSIE 6.0. Therefore Image Uploader will try to embed the ActiveX version instead of using the Java version. A couple lines of Javascript in the iuembed.js file will fix the problem.

In the writeHTML function you could add the following code to identify Opera. As you see below you will want to add the code after the isWinIE check:

Code:
var isWinIE=(a.indexOf("msie")!=-1)&&(a.indexOf("win")!=-1);

// Check if Opera - because Opera can report as IE
if (navigator.userAgent.indexOf("Opera")!=-1) {
      isWinIE = false;
}


Fedor
Posted: Tuesday, July 26, 2005 9:39:00 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Hello,

Thank you for your bug report. Checking for Opera was added in iuembed.js script which is shipped with Image Uploader 1.1:

Code:
      this.writeHtml=function(){
            var a=navigator.userAgent.toLowerCase();
            var isOpera=(a.indexOf("opera")!=-1);
            var isWinIE=(a.indexOf("msie")!=-1)&&(a.indexOf("win")!=-1)&&!isOpera;
            var isSafari=(a.indexOf("safari")!=-1);
            
            //Other code....
      }


Image Uploader 1.1 was released in the end of last week and you can download it at its usual place.




Best regards,
Fedor Skvortsov
josh
Posted: Tuesday, July 26, 2005 9:45:00 AM
Rank: Member
Groups: Member

Joined: 7/26/2005
Posts: 9
Points: 6
Thanks Fedor,

Just so you know, it doesn't work with Opera on the demo site:

http://www.aurigma.com/Products/ImageUploader/OnlineDemo.aspx

That code must be outdated.

Josh

Fedor
Posted: Tuesday, July 26, 2005 8:33:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Hello Josh,

Thank you for you remark. I have updated our online demo.

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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.