frePPLe 0.6.1 在 IE 6 的 Operation Report 死当

最近在公司有一个project就是要帮忙处理生产排程的程式,看到有一个免费的排程程式frepple,就下载来用,后来发现重点的生产排程报表不能产生,死当,就写信给作者,作者给我的回覆是

‘Try installing a better browser
frePPLe is tested to work fine with the following browsers: Firefox, Internet Explorer 7, Safari, Opera.

Internet Explorer 6 is not complying to the industry standards in many ways, which creates problems for frePPLe (and a lot of web developers as well).
I am not planning to hack up my application to work with such a bad browser.’

果真在FireFox上执行是ok的,所以我只好请Johan给我一个建议看看如何在IE6上执行,

>>Ok.I understand your meaning.But in my company I only use Internet Explorer 6.
>>So I need to hack your application.

If you send me a patch, I am willing to merge it in the code and support it as part of frePPLe.

>>I think it may be javascript’s problem.
>>So could you cue me how I can do?

It is very likely a javascript problem indeed, but I have not investigated the problem in detail. It is possible that the problem is relatively minor and can fixed pretty easily.

FrePPLe uses javascript code (among others) to synchronize the scrolling in different DIVs. I suspect the problem is in that part. See the functions syncInitialize, syncScroll, and syncResize in the file frepple.js.

Note also that frePPLe is using the “prototype” javascript library (see http://www.prototypejs.org/) to support multiple browser dialects easily.

Good luck & keep me posted,

经过两天的测试终于在Google中发现这个在IE 6 onresize的bug,我想在IE6不太会resize window所以我就把

Event.observe(window, ‘resize’, syncResize);

这一行给遮蔽了,

改后的档案:

frepple