Skip to main content
Home Forums Silverlight Design Video and Media Silverlight support on Opera browser
11 replies. Latest Post by nirlevin on September 2, 2009.
(0)
ProJester
Member
11 points
4 Posts
12-13-2008 12:14 PM |
"Microsoft Silverlight may not be supported on this browser."
Will (when) Silverlight be supported on Opera browser?
Regards, Alfred.
ken tucker
All-Star
16344 points
2,498 Posts
12-13-2008 12:26 PM |
From ScottGu's blog
Hi Michal, >>>>>>> Now, if we really want to call it "cross browser", one question keeps coming up: WHEN will it work in Opera? There were absolutely no news about Opera support since the Opera/Microsoft announcement in May 2007 - is it ever going to be supported? The good news is that SL2 works well with Opera now. It isn't an officially supported browser - but we do test with it, and have fixed a number of bugs that previously imapacted it. Hope this helps, Scott
Joe Stegman
82 points
27 Posts
12-13-2008 1:13 PM |
Alfred - are you having issues with Silverlight running in Opera and if so, can you post a repo of the problem (including Opera version number)?
There are numerous browsers we test with including Opera that are not officially supported but we like to know about issues so that can work to get those addressed.
Archi
2 points
1 Posts
12-16-2008 12:56 AM |
Joe Stegman. Let me tell about the problem of Opera Browser support. There is an official site of International Biathlon Union. And live results are displayed at the following page: http://services.biathlonresults.com/datacenterSL_en.aspx. Yet the latest version of Opera 9.62 I'm currently using does not support Silverlight properly. There's just blank page and nothing more. So please try to fix this problem, ‘cause the abovementioned service is useful for millions of biathlon fans using Opera all over the world :)
12-17-2008 9:30 PM |
Archi,
The issue with that site is the way the site is hosting Silverlight. I have copied the referenced application locally and verified it does work on Opera (9.63) when hosted correctly. Unfortunately, I cannot determine the owner/administrator of that site so I am unable to get them to update their page to make it work correctly with Silverlight.
If you (or anyone) can find me a contact for that site, I can work with them to update the site and get it working on Silverlight. The update is very minor and involves the way they host the Silverlight object tag on the web page.
12-18-2008 6:42 AM |
Joe,
After I posted in this thead I noticed I have the same problem with my sites rendering in opera. Would it be possible for you make a blog post about making a silverlight app render in opera so everyone can know the trick?
Ken
12-19-2008 1:29 PM |
The easiest way to work around this is to use basic tag hosting. Can you try that and verify it fixes your sites and if it does, I'll blog about it? Your object tag should look like the following: <html xmlns="http://www.w3.org/1999/xhtml" > <!-- saved from url=(0014)about:internet -->  <head>    <title>Opera Test</title>    <style type="text/css">     html, body { height: 100%; overflow: auto; }     body { padding: 0; margin: 0; }     #silverlightControlHost { height: 100%; }    </style>    <script type="text/javascript" src="Silverlight.js" mce_src="Silverlight.js"></script>    <script type="text/javascript">     function onSilverlightError(sender, args) {      var appSource = "";      if (sender != null && sender != 0) {      appSource = sender.getHost().Source;     }     var errorType = args.ErrorType;     var iErrorCode = args.ErrorCode;     var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n" ;     errMsg += "Code: "+ iErrorCode + " \n";     errMsg += "Category: " + errorType + " \n";     errMsg += "Message: " + args.ErrorMessage + " \n";     if (errorType == "ParserError")     {      errMsg += "File: " + args.xamlFile + " \n";      errMsg += "Line: " + args.lineNumber + " \n";      errMsg += "Position: " + args.charPosition + " \n";     }     else if (errorType == "RuntimeError")     {      if (args.lineNumber != 0)      {      errMsg += "Line: " + args.lineNumber + " \n";      errMsg += "Position: " + args.charPosition + " \n";      }     errMsg += "MethodName: " + args.methodName + " \n";    }   throw new Error(errMsg);    }   </script>  </head>   <body>    <!-- Runtime errors from Silverlight will be displayed here.    This will contain debugging information and should be removed or hidden when debugging is completed -->    <div id='errorLocation' style="font-size: small;color: Gray;"></div>    <div id="silverlightControlHost">     <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">      <param name="source" value="PATH_TO_YOUR_XAP_HERE.xap"/>      <param name="onerror" value="onSilverlightError">      <param name="background" value="white">      <param name="minRuntimeVersion" value="2.0.31005.0">      <param name="autoUpgrade" value="true">       <a href="http://go.microsoft.com/fwlink/?LinkID=124807" mce_href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">      <img src="http://go.microsoft.com/fwlink/?LinkId=108181" mce_src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>      </a>    </object>    <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>   </div>  </body></html>
12-22-2008 6:51 AM |
Thanks for blogging about this. It still does not work properly. I have a website I am starting http://www.silverlight-help.com/ I have 2 small silverlight apps that I am displaying this way only one works in opera. All the code is on the site.
12-22-2008 10:16 PM |
After some more digging around, I found a couple more Silverlight/Opera issues and blogged about them here. Your sample is hitting the second issue – which is Silverlight does not work in Opera in windowless mode. This is something that has been reported to Opera but that our team will look at as well.
07-30-2009 5:13 AM |
Silverlight Ver3 supported by Opera almost good ,
windowless mode fixed
only typing in text boxes still the problem
anyeone
Participant
811 points
182 Posts
08-18-2009 1:25 PM |
Sorry for the thread necro but it's pertinent to Joe Stegman's workaround.
I use several initialization parameters for my silverlight application, these are set in the code-behind of the aspx page hosting the application. I am using the <asp:Silverlight ... /> server tag to instantiate the object in the aspx front end then setting its InitParams property in the code behind based on session specific information.
If we switch to your methodology for the Opera workaround which seems to be using an html object instead of a .NET server object for the silverlight application, how do we set the initparams property in the code-behind?
nirlevin
40 points
122 Posts
09-02-2009 7:36 AM |
Does any one have an idea regarding 'typing in text boxes':
When\if will be solved?
How to bypass?