Firefox cannot load .xml webpage but IE loads it OK
When I try to access this website in Internet Explorer it works fine, but in Firefox I get the following error message: In the unlikely event that you are reading this instead of seeing the file layouts as expected it means that your browser is not displaying the frames correctly. Your browser must support frames for this document to work. It also needs to support XML and XSLT, as well as Javascript and CSS."
The website is: http://www.mcscustomerclub.com/xml/schema324.xml and contains a file data dictionary.
The website is a password-protected resource, it accepts my username and password but then gives the error message above. In IE it displays the dictionary straight after I enter my username and password.
I have:
1) Cleared my cache and restarted Firefox 2) Javascript installed 3) In about:config, browser.frames.enabled is set to 'true' 4) Removed all add-ons, restarted Firefox and tried site again but did not work
I have tried it in Firefox on both my work and my home PC (version 20.0.1 on both machines) and it does not work on either machine. On IE it displays the dictionary correctly.
Does anyone know what is/could be wrong, and how I might correct it?
被采纳的解决方案
Thanks again for your reply.
I have found a workaround so I can use the file in Firefox. I've simply saved it in Internet Explorer to my documents as an HTML file and set a link to the local file as a bookmark. Not ideal as it means I will have to check for any updates and download them on an occasional basis, but at least it works!
Kind regards Martyn
定位到答案原位置 👍 0所有回复 (4)
That page requires authentication as you posted, so we can't check it out to see if it can be replicated.
Do you see any errors related to this in the Error Console (Firefox/Tools > Web Developer; Ctrl+Shift+J) or Web Console (Firefox/Tools > Web Developer;Ctrl+Shift+K)?
Do a hard refresh (Ctrl+F5 or Ctrl+Shift+R) to bypass the cache and get fresh files from the server.
You can try to create a new profile as a test to check if your current profile is causing the problems.
See "Creating a profile":
- https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
- http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
Thanks for your reply
I've done a couple of hard refreshes this morning but results in the same error whichever way I do it.
I have created a new profile and tried website on the new profile - same problem. Gradually added in files from old profile but the error remains.
Result from the Error console and Web console I have attached as screenshots below, as well as an example screenshot of how the page renders on IE. I really would prefer not to have to use IE so I look forward to your further suggestions.
Thanks for looking at this in advance,
Martyn
I see an error about document.all and that means that the website will only work properly in IE because other browser do not support this method of accessing elements.
Modern browser use document.getElementById() to access elements on web pages.
See:
- "JavaScript doesn’t work! Why?":
https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ - "Unsupported DOM-related properties":
https://developer.mozilla.org/en/Using_Web_Standards_in_your_Web_Pages/Using_the_W3C_DOM
选择的解决方案
Thanks again for your reply.
I have found a workaround so I can use the file in Firefox. I've simply saved it in Internet Explorer to my documents as an HTML file and set a link to the local file as a bookmark. Not ideal as it means I will have to check for any updates and download them on an occasional basis, but at least it works!
Kind regards Martyn