简体   繁体   English

Dashcode和Firefox兼容性

[英]Dashcode and firefox compatibility

I started to use Dashcode with a Safari Custom Project, my apps work fine, but StackLayout Object does not work in Firefox. 我开始在Safari自定义项目中使用Dashcode ,我的应用程序运行良好,但是StackLayout Object在Firefox中不起作用。 I know Dashcode use many wekbit-specific things but is there any way I can get StackLayout object o work in Firefox? 我知道Dashcode使用许多特定于Wekbit的东西,但是有什么方法可以让StackLayout对象在Firefox中工作? I would not mind losing some fancy stuff like transition-animations as long as my Views change. 只要我的视图发生变化,我就不会介意失去一些奇特的东西,例如过渡动画。 StackLayout also does not work in IE, but I think that is too much to expect from IE. StackLayout在IE中也不起作用,但是我认为这对IE来说太过期望了。 lol. 大声笑。

Any suggestions, ideas? 有什么建议,想法吗? Maybe jQuery or Dojo libraries can be used with DashCode in case webkit is not available?. 如果Webkit不可用,也许jQuery或Dojo库可以与DashCode一起使用? in this case how can I do this? 在这种情况下,我该怎么办?

Thanks. 谢谢。

ADDED 2010/3/28: 添加2010/3/28:

This is my code: 这是我的代码:

function tab1ClickHandler(event){
    // introView tab
    var stackLayout = document.getElementById('stackLayout').object;
    stackLayout.setCurrentView('introView'); 

    var obj1= document.getElementById('text1');
    obj1.style.setProperty('background-image', 'url(Images/text3%201.png)', 'important');
    var obj2= document.getElementById('text2');
    obj2.style.setProperty('background-image', 'none', 'important');
    var obj3= document.getElementById('text3');
    obj3.style.setProperty('background-image', 'none', 'important');
}

I got the Stacklayout code from Dashcode inspector panel (So I don't think is incorrect) 我从Dashcode检查器面板获得了Stacklayout代码(所以我认为这是不正确的)

Setting backgroung-image property is working well in FireFox. 设置backgroung-image属性在FireFox中运行良好。 The problem is just Stacklayout's view change is not working. 问题只是Stacklayout的视图更改不起作用。 You can see the results here: http://web.me.com/nacho4d/ (Compare safari or chrome and firefox, click the tabs) 您可以在此处查看结果: http : //web.me.com/nacho4d/ (比较safari或chrome和firefox,单击选项卡)

Any thoughts? 有什么想法吗? I asked the same question in dashboard-dev apple's mailing list but didn't get a reply yet. 我在dashboard-dev apple的邮件列表中问了同样的问题,但没有得到答复。

Just for the record: 仅作记录:

It seems there is a bug (FireFox or Dashcode?) that won't let FireFox load the page correctly. 似乎有一个错误(FireFox或Dashcode?)不会使FireFox正确加载页面。 I only tested with FireFox 3.6.2 (it was the latest that time) The answer is here: http://lists.apple.com/archives/dashboard-dev/2010/Mar/msg00017.html 我只用FireFox 3.6.2(当时是最新的)进行测试,答案在这里: http : //lists.apple.com/archives/dashboard-dev/2010/Mar/msg00017.html

Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM