Skip to main content

Microsoft Silverlight

Answered Question Silverlight support on Opera browserRSS Feed

(0)

ProJester
ProJester

Member

Member

11 points

4 Posts

Silverlight support on Opera browser

"Microsoft Silverlight may not be supported on this browser."

Will (when) Silverlight be supported on Opera browser?

Regards, Alfred.

 

ken tucker
ken tucker

All-Star

All-Star

16344 points

2,498 Posts

Answered Question

Re: Silverlight support on Opera browser

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

 

http://weblogs.asp.net/scottgu/archive/2008/10/14/silverlight-2-released.aspx

Joe Stegman
Joe Stegman

Member

Member

82 points

27 Posts

Re: Silverlight support on Opera browser

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.

 

Joe Stegman

Archi
Archi

Member

Member

2 points

1 Posts

Re: Silverlight support on Opera browser

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 :)

Joe Stegman
Joe Stegman

Member

Member

82 points

27 Posts

Re: Re: Silverlight support on Opera browser

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.

Joe Stegman

ken tucker
ken tucker

All-Star

All-Star

16344 points

2,498 Posts

Re: Re: Silverlight support on Opera browser

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  

 

Joe Stegman
Joe Stegman

Member

Member

82 points

27 Posts

Re: Re: Re: Silverlight support on Opera browser

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:

&lthtml xmlns="http://www.w3.org/1999/xhtml" >
&lt!-- saved from url=(0014)about:internet -->
&nbsp &lthead>
&nbsp&nbsp &lttitle>Opera Test&lt/title>
&nbsp&nbsp &ltstyle type="text/css">
&nbsp&nbsp&nbsp html, body { height: 100%; overflow: auto; }
&nbsp&nbsp&nbsp body { padding: 0; margin: 0; }
&nbsp&nbsp&nbsp #silverlightControlHost { height: 100%; }
&nbsp&nbsp &lt/style>
&nbsp&nbsp &ltscript type="text/javascript" src="Silverlight.js" mce_src="Silverlight.js">&lt/script>
&nbsp&nbsp &ltscript type="text/javascript">
&nbsp&nbsp&nbsp function onSilverlightError(sender, args) {
&nbsp&nbsp&nbsp&nbsp var appSource = "";
&nbsp&nbsp&nbsp&nbsp if (sender != null &amp&amp sender != 0) {
&nbsp&nbsp&nbsp&nbsp appSource = sender.getHost().Source;
&nbsp&nbsp&nbsp }
&nbsp&nbsp&nbsp var errorType = args.ErrorType;
&nbsp&nbsp&nbsp var iErrorCode = args.ErrorCode;

&nbsp&nbsp&nbsp var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n" ;

&nbsp&nbsp&nbsp errMsg += "Code: "+ iErrorCode + " \n";
&nbsp&nbsp&nbsp errMsg += "Category: " + errorType + " \n";
&nbsp&nbsp&nbsp errMsg += "Message: " + args.ErrorMessage + " \n";

&nbsp&nbsp&nbsp if (errorType == "ParserError")
&nbsp&nbsp&nbsp {
&nbsp&nbsp&nbsp&nbsp errMsg += "File: " + args.xamlFile + " \n";
&nbsp&nbsp&nbsp&nbsp errMsg += "Line: " + args.lineNumber + " \n";
&nbsp&nbsp&nbsp&nbsp errMsg += "Position: " + args.charPosition + " \n";
&nbsp&nbsp&nbsp }
&nbsp&nbsp&nbsp else if (errorType == "RuntimeError")
&nbsp&nbsp&nbsp {
&nbsp&nbsp&nbsp&nbsp if (args.lineNumber != 0)
&nbsp&nbsp&nbsp&nbsp {
&nbsp&nbsp&nbsp&nbsp errMsg += "Line: " + args.lineNumber + " \n";
&nbsp&nbsp&nbsp&nbsp errMsg += "Position: " + args.charPosition + " \n";
&nbsp&nbsp&nbsp&nbsp }
&nbsp&nbsp&nbsp errMsg += "MethodName: " + args.methodName + " \n";
&nbsp&nbsp }

&nbsp&nbsp throw new Error(errMsg);
&nbsp&nbsp }
&nbsp&nbsp &lt/script>
&nbsp &lt/head>

&nbsp &ltbody>
&nbsp&nbsp &lt!-- Runtime errors from Silverlight will be displayed here.
&nbsp&nbsp This will contain debugging information and should be removed or hidden when debugging is completed -->
&nbsp&nbsp &ltdiv id='errorLocation' style="font-size: small;color: Gray;">&lt/div>
&nbsp&nbsp &ltdiv id="silverlightControlHost">
&nbsp&nbsp&nbsp &ltobject data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
&nbsp&nbsp&nbsp&nbsp &ltparam name="source" value="PATH_TO_YOUR_XAP_HERE.xap"/>
&nbsp&nbsp&nbsp&nbsp &ltparam name="onerror" value="onSilverlightError">
&nbsp&nbsp&nbsp&nbsp &ltparam name="background" value="white">
&nbsp&nbsp&nbsp&nbsp &ltparam name="minRuntimeVersion" value="2.0.31005.0">
&nbsp&nbsp&nbsp&nbsp &ltparam name="autoUpgrade" value="true">
&nbsp&nbsp&nbsp&nbsp&nbsp &lta href="http://go.microsoft.com/fwlink/?LinkID=124807" mce_href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
&nbsp&nbsp&nbsp&nbsp &ltimg 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"/>
&nbsp&nbsp&nbsp&nbsp &lt/a>
&nbsp&nbsp&nbsp &lt/object>
&nbsp&nbsp &ltiframe style='visibility:hidden;height:0;width:0;border:0px'>&lt/iframe>
&nbsp &lt/div>
&nbsp &lt/body>
&lt/html>

Joe Stegman

ken tucker
ken tucker

All-Star

All-Star

16344 points

2,498 Posts

Re: Re: Re: Silverlight support on Opera browser

Joe,

                 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.

 

Ken

Joe Stegman
Joe Stegman

Member

Member

82 points

27 Posts

Re: Silverlight support on Opera browser

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.

Joe Stegman

ProJester
ProJester

Member

Member

11 points

4 Posts

Re: Silverlight support on Opera browser

Silverlight Ver3 supported by Opera almost good Wink ,

windowless mode fixed

only typing in text boxes still the problemTongue Tied

anyeone
anyeone

Participant

Participant

811 points

182 Posts

Re: Re: Re: Re: Silverlight support on Opera browser

 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?

--
Anye Mercy
AnyeDotNet.blogspot.com

Please "Mark as Answer" the posts that help you - this lets others know the problem has been solved and helps others having the same problem know which solution works. Thanks!

nirlevin
nirlevin

Member

Member

40 points

122 Posts

Re: Silverlight support on Opera browser

Does any one have an idea regarding 'typing in text boxes':

When\if will be solved?

How to bypass?

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities