疯狂的跨平台javascript渲染问题 [英] crazy cross-platform javascript rendering problems

查看:64
本文介绍了疯狂的跨平台javascript渲染问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




长话短说,我建立了一个主要基于javascript的网站

http://www.sjcga.com


该网站呈现*很棒*在WinIE6 / 7和Mac / Win Opera9中。


它在Mac / Win Firefox2和Safari(OSX)中都有问题......特别是

画廊,但右侧菜单也很时髦。


我已经验证了我的脚本通过几个不同的系统,没有

可用。我希望我可以说,如果我的代码在两个浏览器中运行,那么

它不是我的错 ......但是......好吧......我希望我的代码可以在任何地方工作

,显然负担在我身上。


现在,老实说,我只关心Safari,因为几个SJCGA

人(我的客户!)使用它。但我肯定想弄清楚FireFox中存在的问题是什么?
!它是一种流行的浏览器,在市场上不断增长

分享。


我甚至愿意进行浏览器检查,并提供不同的

每个浏览器的功能和代码...如果我能弄明白问题是什么

!是否有某个Firefox ECMA怪癖列表?


帮助!我在绳子的尽头,我把头发拉了出来。任何

线索?


底线:我的JAVASCRIPT错误!?


***已发送通过开发人员指南 http://www.developersdex.com ***

解决方案

t?ff 93722写道:


>

长话短说,我建立了一个主要基于javascript 的网站:

http://www.sjcga.com


该网站在WinIE6 / 7和Mac / Win Opera9中呈现*很棒。

它在Mac / Win Firefox2和Safari(OSX)中都有问题......特别是

画廊,但右侧菜单也很时髦。


[...]


>

底线:我的JAVASCRIPT错在哪里! ?



新的底线:

你会得到什么错误消息?




我收到* NO *错误消息!这是(问题的一部分)!脚本

在IE和Opera中运行得很好,但是在FireFox中我得到的结果很糟糕。一些

细节:


1)右上角菜单,你点击它的第一次,跳得更远

吧,并且无法关注您单击的链接。在第二次点击,

将跟随链接。


2)在图库中,您输入的第一个时间,它显示第一组

缩略图正确,右上角的菜单。但是如果你点击任何

缩略图来放大,或者如果你点击导航箭头,突然(a)

菜单链接中断,以及(b)所有像素显示为ALT标签而不是

图像。


奇异!


但是在IE和Opera中一切都很好用。


帮助!


...


[旁白:我在别处读到那份文件.write()已被弃用!?新闻来了

me :( ... Firefox的DOM处理与我上面描述的

奇异的显示结果有什么关系吗?然而,我使用

document.write()在SJCGA.com和其他网站的其他地方,那里

没问题!]


***通过开发人员指南 http://www.developersdex.com 发送***


t?ff 93722写道:


>

我得到*否*错误消息!这是问题的一部分!脚本

在IE和Opera中运行得很好,但是在FireFox中我得到的结果很糟糕。一些

细节:


1)右上角的菜单,你点击它的第一个时间,进一步跳得更好

,并且没有按照你点击的链接。在第二次点击,

将跟随链接。


2)在图库中,您输入的第一个时间,它显示第一组

缩略图正确,右上角的菜单。但是如果你点击任何

缩略图来放大,或者如果你点击导航箭头,突然(a)

菜单链接中断,以及(b)所有像素显示为ALT标签而不是

图像。


奇异!


但是在IE和Opera中一切都很好用。


帮助!


..


[旁白:我在别处读到那份文件。 write()已被弃用!?新闻来了

me :( ... Firefox的DOM处理与我上面描述的

奇异的显示结果有什么关系吗?然而,我使用

document.write()在SJCGA.com和其他网站的其他地方,那里

没问题!]



你可以从这里开始:

http://validator.w3.org/check?verbos...w.sjcga.com%2F


Mick




Long story short, I built a website based primarily on javascript:

http://www.sjcga.com

The site renders *great* in WinIE6/7 and in Mac/Win Opera9.

It has problems in Mac/Win Firefox2, and in Safari(OSX) ... especially
the Gallery, but the rightside menu is funky also.

I''ve "validated" my scripts through a couple different systems, to no
avail. I wish I could just say, "If my code works in two browsers, then
it''s not my fault" ... but ... well ... I want my code to work
everywhere, and the burden obviously is on me.

Now, honestly, I only care about Safari because several of the SJCGA
people (my clients!) use it. But I sure would like to figure out what
the problems are in FireFox! It''s a popular browser, growing in market
share.

I would even be willing to do a browser check, and offer up different
functions and codes for each browser ... IF only I could figure out what
the problems are! Is there a list of Firefox ECMA quirks somewhere?

HELP! I am at the end of my rope, and I''ve pulled out all my hair. Any
clues?

Bottom line: WHAT IS WRONG WITH MY JAVASCRIPT!?

*** Sent via Developersdex http://www.developersdex.com ***

解决方案

t?ff 93722 wrote:

>
Long story short, I built a website based primarily on javascript:

http://www.sjcga.com

The site renders *great* in WinIE6/7 and in Mac/Win Opera9.

It has problems in Mac/Win Firefox2, and in Safari(OSX) ... especially
the Gallery, but the rightside menu is funky also.

[...]

>
Bottom line: WHAT IS WRONG WITH MY JAVASCRIPT!?

New bottom line:
WHAT ERROR MESSAGES ARE YOU GETTING?




I get *NO* error messages! That''s (part of) the problem! The scripts
work great in IE and Opera, but in FireFox I get screwy results. Some
specifics:

1) The top-right menu, the FIRST TIME you click it, jumps even further
right, and fails to follow the link you click. On the SECOND click, it
will follow the link.

2) In the Gallery, the FIRST TIME you enter, it displays the first set
of thumbnails properly, and the top-right menu. But if you click any
thumbnail to zoom on, or if you click a navigation arrow, suddenly (a)
the menu links break, and (b) all the pix display as ALT tags instead of
images.

Bizarre!

But everything works great in IE and Opera.

HELP!

...

[Aside: I read elsewhere that document.write() is deprecated!? News to
me :( ... Does Firefox''s DOM handling have anything to do with the
bizarre display results I describe above? And yet, I use
document.write() elsewhere in SJCGA.com, and in other sites, and there
are no problems!]

*** Sent via Developersdex http://www.developersdex.com ***


t?ff 93722 wrote:

>
I get *NO* error messages! That''s (part of) the problem! The scripts
work great in IE and Opera, but in FireFox I get screwy results. Some
specifics:

1) The top-right menu, the FIRST TIME you click it, jumps even further
right, and fails to follow the link you click. On the SECOND click, it
will follow the link.

2) In the Gallery, the FIRST TIME you enter, it displays the first set
of thumbnails properly, and the top-right menu. But if you click any
thumbnail to zoom on, or if you click a navigation arrow, suddenly (a)
the menu links break, and (b) all the pix display as ALT tags instead of
images.

Bizarre!

But everything works great in IE and Opera.

HELP!

..

[Aside: I read elsewhere that document.write() is deprecated!? News to
me :( ... Does Firefox''s DOM handling have anything to do with the
bizarre display results I describe above? And yet, I use
document.write() elsewhere in SJCGA.com, and in other sites, and there
are no problems!]

You could start here:

http://validator.w3.org/check?verbos...w.sjcga.com%2F

Mick


这篇关于疯狂的跨平台javascript渲染问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆