搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

unable to get firefox to run a website http://www.dewittlumber.com/buildestimator.htm this site is html with a javasript running on the server.

  • 3 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

not able to make this web address to work with firefox. This site works correctly with IE8 or IE9 Any suggestions to make it compatible with FireFox.

not able to make this web address to work with firefox. This site works correctly with IE8 or IE9 Any suggestions to make it compatible with FireFox.

所有回覆 (3)

more options

Doesn't work for me either, but that isn't surprising considering that Firefox is forced into the Quirks Mode and with the errors on that page.There's at least 4 errors related to JavaScript.
http://validator.w3.org/check?uri=http://www.dewittlumber.com/buildestimator.htm

more options

The question is possibly rather too technical for this forum, although you may get lucky and find an answer.

I assume this is your own website.

If it is a simple problem maybe someone will give you a quick reply. Otherwise I suggest you try elsewhere such as mozillazine http://forums.mozillazine.org/viewforum.php?f=25

(Please post back if you find a solution)

more options

The site tries to refer to the id via var bt=1*document.getElementById("BT").value; , but there is only a name and not an id attribute in the select elements.

This code pasted in the command line in the Web Console (Web Developer > Web Console;Ctrl+Shift+K) should fix this by copying the name attribute to the id attribute.

Paste the code in the command line and press enter.

var s=document.querySelectorAll("select[name]"),i,j=0;for(i=0;S=s[i];i++){if(!S.id){S.id=S.name;j++}}alert(j);

由 cor-el 於 修改