IE7 javascript 在特定代码路径上失败,有什么想法吗?
所以我有一个运行 CKEditor 的应用程序,或者让我们假装它“只是一块 javascript”。
如果我导航到我的应用程序、登录并初始化编辑器,CKEditor(javascript)可以正常加载。
但是,如果我“记住我的登录信息”,CKEditor 就会失败,因为它会绕过登录屏幕。
两个代码路径如下:
1. navigate to site > login > initialize editor ...WORKS!
2. navigate to site > initialize editor ...FAILS!
登录是一个非常复杂的 JavaScript 应用程序,所以我无法将其拆开,但它是有范围的。
我唯一能想到的是一些非常奇怪的加载顺序/计时问题,它在非常特定的条件下表现出来。有人对此类问题有经验吗?
我尝试了很多事情。移动 javascript 文件,更改脚本的加载顺序,但似乎没有什么可以让情况 #2 工作。
开放的想法...
So I have an app running CKEditor, or lets just pretend its "just a chunk of javascript".
CKEditor (the javascript) loads fine if I navigate to my app, login, and initalize the editor.
However CKEditor fails if I "remember my login" as it bypasses the login screen.
The two code paths are as follows:
1. navigate to site > login > initialize editor ...WORKS!
2. navigate to site > initialize editor ...FAILS!
The login is a VERY complicated javascript app, so I can't tear it apart, but it is scoped.
The only thing I can think of is some really bizarre load order/timing problem that manifests itself under very specific conditions. Does anyone have any experienced with this kind of issue?
I tried a lot of things. Moving javascript files around, changing load order of scripts, but nothing seems to get case #2 to work.
Open to ideas...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来这是 IE7/CKEDTIOR 的一些文件路径错误。
这不起作用:
虽然这有效:
真是个笑话。浪费了6天时间试图弄清楚!
Seems that it is some file path bug with IE7/CKEDTIOR.
This does not work:
While this works:
What a joke. Wasted 6 days trying to figure it out!