Mac OS X 上的 Silverlight 3 在 Firefox 3.5 中不起作用!

发布于 2024-07-29 00:37:30 字数 327 浏览 3 评论 0原文

我正在尝试将我的网站升级到 Silverlight 3。我的所有客户从 Silverlight 2 升级到 Silverlight 3 或全新安装都获得了相当好的体验。

但在 Mac OS X 的 Firefox 3.5 上,安装 Silverlight 后,他们无法查看任何 Silverlight 应用程序,屏幕上只是空白。 没有错误,我可以右键单击应用程序并访问 Silverlight 首选项等,但没有任何呈现。 但它在 Safari 中运行得非常好。

有没有其他人有这个问题?

顺便说一句,我也重新启动了机器,但没有运气。

干杯, 灰。

I'm trying to upgrade my site to Silverlight 3. All my customers are having a reasonabily good experience from upgrading to Silverlight 3 from Silverlight 2 or just a fresh install.

But on Mac OS X in Firefox 3.5, after Silverlight is installed they cant view any Silverlight apps, it's just blank on screen. No errors, I can right click on the app and access the Silverlight Preferences etc, but nothing renders. But it works absolutely fine in Safari.

Has anyone else had this problem?

BTW, I have also restarted the machine, but no luck.

Cheers,
Ash.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

七七 2024-08-05 00:37:30

还有第四种方法:

在具有宽度和高度的对象参数中,只需将高度设置为固定大小(以像素为单位)。

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="600px">

现在它会在 Firefox 上正确显示。

该问题仍然是一个错误,但您可以使用该解决方法。

未来的问题将是如果 silverlight 高度在使用时发生变化,则动态定义主机 div 高度。

There was a fourth way :

in the object parameters where u have width and height, just set height to a fixed size in pixels.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="600px">

it will appear correctly now on Firefox.

The problem stay a bug but u can use that work-around.

The problem in the future will be to define the host div height dynamically if the silverlight height change while using it.

智商已欠费 2024-08-05 00:37:30

解决方案2,使用w3c平台:我的网站已经尊重w3c,但很难单独使用Xhtml、Ajax和Css的商业应用程序等动态功能。

解决方案 3,不要使用 Firefox:也很抱歉,30% 的人使用该浏览器,对于我正在制作的网站,他们是潜在客户。

我将像目前一样跟踪该错误,提供帮助并等待一段时间,继续使用 silverlight 并保留第一个选项:)

感谢您的回答。

我在这里追踪了这个错误=> https://bugzilla.mozilla.org/show_bug.cgi?id=506231

Solution 2, use w3c platform : My website respect w3c already but difficult to use dynamic functions like for a business app in Xhtml, Ajax and Css alone.

Solution 3, do not use Firefox : Sorry here too, 30% peoples using that browser and for the website i am making, it is potential customers.

I will follow the bug as i do currently, help and wait a little while continue using silverlight and keep first option :)

Thanks for your answer.

I traced the bug here => https://bugzilla.mozilla.org/show_bug.cgi?id=506231

一场信仰旅途 2024-08-05 00:37:30

我遇到了同样的问题,Silverlight 不显示内容(Mac OS 10.5.8、FireFox 3.6.10)。 为了解决这个问题,我禁用了 Firebug 扩展并重新启动了浏览器。 希望有帮助。

I had the same issue with Silverlight not displaying content (Mac OS 10.5.8, FireFox 3.6.10). To solve the problem, I disabled my Firebug extension and restarted the browser. Hope that helps.

剪不断理还乱 2024-08-05 00:37:30

它在 OS X (10.5.7) 上的 Firefox 3.5 中运行良好。 检查您是否禁用了 Silverlight Firefox 插件

在 Firefox 3.5 中的 OS X 上运行 Silverlight 3 http://img148.imageshack.us/img148 /3585/picture1jcf.th.png

It works fine in Firefox 3.5 on OS X (10.5.7). Check if you have the Silverlight Firefox plugin disabled.

Working Silverlight 3 on OS X in Firefox 3.5 http://img148.imageshack.us/img148/3585/picture1jcf.th.png

放肆 2024-08-05 00:37:30

对我来说也是如此,当我使用普通的 aspx 页面来托管 silverlight 3 控件时,它可以工作:

<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/SilverlightApplication2.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="3.0.40624.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>

但是当我在另一个 div 之间包含我的 silverlight 对象(在 aspx 页面内)(例如调整大小或没有其他内容)时,我在 Firefox 下得到了一个空白页面3.5:

<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/SilverlightApplication2.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="3.0.40624.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div></div>

自己用一个新的VS项目进行测试。

其他浏览器(opera、chrome、ie、safari)可以正确显示 SL 控件。

看起来像是 javascript 问题,但目前不知道在哪里......

Same for me, when i use plain aspx page to host silverlight 3 control it works :

<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/SilverlightApplication2.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="3.0.40624.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>

But when i include my silverlight object (inside aspx page) between another div (to resize or nothing else for example), i got a blank page under firefox 3.5 :

<div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
          <param name="source" value="ClientBin/SilverlightApplication2.xap"/>
          <param name="onError" value="onSilverlightError" />
          <param name="background" value="white" />
          <param name="minRuntimeVersion" value="3.0.40624.0" />
          <param name="autoUpgrade" value="true" />
          <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
              <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
          </a>
        </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div></div>

Do the test by yourself with a new VS project.

Other browsers (opera, chrome, ie, safari) display the SL control correctly.

It looks like javascript problem, but currently do not know where...

笙痞 2024-08-05 00:37:30

这是一个已知问题,您基本上有三个选择;

  • 继续使用 Silverlight 进行开发,并预计此类问题将来会频繁出现 - 即使您这次可以让应用程序正常工作,但以后它仍然会偶尔出现。
  • 利用某种 Ajax 库将您的应用程序移植到 W3C 平台(ECMA、CSS、(X)HTML),从而永久解决该问题。
  • 完全放弃对您的应用程序的任何非基于 Microsoft 的操作系统支持。 Silverlight 偶尔会部分地与许多非基于 Microsoft 的操作系统配合使用,但是一旦 Microsoft 获得了他们想要的 Silverlight 市场份额,他们就没有经济动机让 Silverlight 与 Mac OS X、Linux、Symbian、iPhone 或 Mac OS X 配合使用。这个世界上任何其他不是由他们自己创建的操作系统 - 事实上,他们的经济激励将是让它在非基于 MS 的操作系统上运行,因为这将推动他们的操作系统(如 Windows)的采用7、WindowsMo​​bile 等。对于您来说,遵循这种策略显然是相当危险的,因为微软正在将市场份额流失到 Linux,尤其是客户端上的 Mac OS X。 更何况他们拥有的手机可能还不到这个世界的1%。 所有这些都意味着您的应用程序的客户(用户)减少。 但是,如果您可以肯定地确定您的客户纯粹希望在基于 Microsoft 的操作系统上使用您的应用程序,那么我想这对您来说并不重要......

我知道这听起来很激烈,但是“对象标签”应该是这里的线索提供者。 Silverlight只不过是带有新名称和一些新奇特颜色的新包装的ActiveX - 如果您愿意,也可以是ActiveX2.0。 我们都知道 ActiveX1.0 是如何工作的...

Microsoft 在其历史上创造了一些非常伟大的创新,.Net Framework 和 C# 语言就是其中之一,但 ActiveX1.0 和 ActiveX2.0 都不是其中之一。创新。 Silverlight 有点像“Windows 千年框架”——有缺陷、昂贵并且给用户带来的好处很少(如果有的话)。 但它被包装在一个漂亮的包装里,让人们“买账”......

This is a known problem and you've basically got three options;

  • Keep on developing with Silverlight and expect these kind of problems surfacing frequently in the future - even if you can get your application to work this time, it'll still surface later down the road every once in a while.
  • Port your application to the W3C platform (ECMA, CSS, (X)HTML) utilizing some sort of Ajax library - and hence get rid of the problem permanently.
  • Entirely drop any non-Microsoft based OS support for your application. Silverlight will occasionally and partially work with many non-Microsoft based Operating Systems, but once Microsoft have acquired the market share they want for Silverlight they will have no financial incentives in getting Silverlight to work with neither Mac OS X, Linux, Symbian, iPhone or any other Operating Systems in this world not created by themselves - in fact their financial incentives will be in getting it NOT to work on non-MS based Operating Systems since this will drive adoption of their Operating Systems like Windows 7, WindowsMobile etc. For you to follow this strategy is obviously quite dangerous since Microsoft is bleeding market shares to Linux and especially Mac OS X on the client. Not to mention that they have probably less then 1% of the mobile phones in this world. Which all together translates into less customers (users) for your applications. But if you can be positively certain about that your customers are purely going to want to use your applications with Microsoft based Operating Systems, then I guess it doesn't matter that much for you...

I know it sounds drastic, but the "object tag" should have been the clue-giver here. Silverlight is nothing but ActiveX in a new wrapping with a new name and some new fancy colors - or ActiveX2.0 if you wish. And we all know how ActiveX1.0 worked...

Microsoft have created some spectacularly great innovations through out their history, the .Net Framework and the C# language being one of them, but neither ActiveX1.0 nor ActiveX2.0 are among those great innovations. Silverlight is kind of like the "Windows Millennium of Frameworks" - buggy, expensive and gives few if any benefits to its users. But comes wrapped inside a beautiful package that makes people "buy into it"...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文