简体   繁体   English

Internet Explorer 10隐藏按钮或阻止JavaScript工作?

[英]Internet Explorer 10 hiding buttons or preventing JavaScript from working?

I'm not normally in a need to ask basic or vague JavaScript questions on SO, so pardon me if there is little details here - I'm not sure how to get more. 我通常不需要在SO上问基本的或模糊的JavaScript问题,所以请原谅我这里有什么细节-我不确定如何获得更多。

In the online user manual I'm maintaining, I'm adding custom buttons on each page to get a direct link to the current page (otherwise grabbing the URL just brings you to the home screen), as well as a few extra features. 在我维护的在线用户手册中,我在每个页面上添加了自定义按钮以获取到当前页面的直接链接(否则,获取URL只会使您进入主屏幕),以及一些其他功能。 These buttons are added using Javascript, or rather they are already hidden in the HTML, are updated after an AJAX call and then displayed. 这些按钮是使用Javascript添加的,或者它们已经隐藏在HTML中,在AJAX调用后会更新,然后显示。

It has taken me a lot of work to get these working, in Firefox, Chrome, IE6, 7, 8, 9, I'm sure you know how these things go. 在Firefox,Chrome,IE6、7、8、9中,要使这些功能正常工作需要花费大量的工作,我相信您知道这些事情的进展。

Now comes IE10 with yet another really weird behavior that I want to bang my head on the wall for. 现在,IE10出现了另一个非常怪异的行为,我想在墙上敲一下头。 If you visit http://help.objectiflune.com/en/knowledgebase/ you will see those buttons on the right inside the main frame. 如果您访问http://help.objectiflune.com/en/knowledgebase/,您将在主机架的右侧看到这些按钮。 They're grey and blue, top of the page. 它们是灰色和蓝色,位于页面顶部。

So this first "welcome" page is fine, it works great, no issue. 因此,第一个“欢迎”页面很好,效果很好,没有问题。 However, if you navigate to any sub page using the TOC on the left (such as Error Codes -> PlanetPress Design -> PlanetPress Design Error PXXXX), the buttons all disappear. 但是,如果使用左侧的TOC导航到任何子页面(例如错误代码-> PlanetPress设计-> PlanetPress设计错误PXXXX),则所有按钮均会消失。

I've also noticed that if you get the URL for the page itself (inside the frame, again) and you open it in another tab, it first does not show them, but then refreshing the page makes the buttons appear. 我还注意到,如果您获得页面本身的URL(再次在框架内),并在另一个选项卡中打开它,则它首先不显示它们,但是刷新页面会使按钮出现。

I've tried using the F12 developper console, but it requires refreshing the page to show the console so I can`t use it in those new tabs. 我尝试使用F12开发人员控制台,但是需要刷新页面以显示控制台,所以我不能在那些新标签中使用它。 As for using within the whole frame system, it doesn't seem to be showing me any errors, nothing weird. 至于在整个框架系统中使用,似乎并没有显示任何错误,也没有怪异。

Again I'm sorry if this is an "it's not working" with no further technical details, but... there are none I know how to give. 再次对不起,这是“不起作用”,没有进一步的技术细节,但是...我不知道该怎么给。

UPDATE : For the specific code, please turn to http://help.objectiflune.com/common/scripts/olCommon.js , and look at the function starting at line 207 ( function buildMenu() ). 更新 :有关特定的代码,请转到http://help.objectiflune.com/common/scripts/olCommon.js ,并查看从第207行开始的函数( function buildMenu() )。 this is the function that retrieves the information and displays the appropriate menus, such as $("#guidebuttons").show(); 这是一个检索信息并显示适当菜单的函数,例如$("#guidebuttons").show();

In ObjectifLune.css, #buttoncontainer has display: none . 在ObjectifLune.css中,#buttoncontainer display: none Navigating through the F12 window, the display of that object is none : 在F12窗口中导航,该对象的显示为none

在此处输入图片说明

I would guess that somewhere in your JS, you're setting the display to block , but there's something wrong with that code in IE. 我猜想在JS的某处,您正在将显示设置为block ,但是IE中的代码有问题。

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

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