Domino Web Application - xml menu not displaying in firefox browser. It works fine in IE

Posted on 2007-12-04
Last Modified: 2013-12-18
Hi all,

I have an xml menu page to display the menu for one of our applications

The xml page is set to Other - "application/xml" in the page properties

This menu is called on the main page of the applications

The menu displays fine on IE but it does not display on firefox

Does someone has an idea on how I can go around this problem?

Thank you all in advance

Open in new window

Question by:varvoura
  • 4
  • 2
LVL 31

Expert Comment

ID: 20408850
You did not include the code.

Author Comment

ID: 20409689
ok, please see link below for a dynamic menu generator,xml

The menu in my database is exactly the same as the on in the link above where it is consturcted in an xml view which is then embedded on a page.xml that page again is displayed using page.css
As i said, if you take a look at db above you'll be able to see the problem

Are you able to view the "xml menu"  in the db above in firefox?
By the way, this was extracted from the "sandbox"

LVL 31

Accepted Solution

qwaletee earned 500 total points
ID: 20411590
Did you read this on the main page of the database?

This application will work only in Internet Explorer version 5 or above as it uses client side scripting using the MSXML parser. The application will not work in Netscape browsers.

Firefox also does not use MSXML. It uses its own XML parser. You would have to adapt the script to be cross-browser compliant.  Here's an exmaple page showing how to support parsers specific to your browser so that your page is cross-browser compliant:
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.


Author Comment

ID: 20417407

I have used your link & changed my js page accordingly.
not having much luck with it
If it isn't too painful, are you able to make the changes recommended in your link to the db that I posted in my link then try on firefox
I have made those changes and they're not working for me maybe they'll work with you

Many thanks
LVL 31

Expert Comment

ID: 20446720
You should be able to create a helper object that returns an XML tree in either IE or Firefox. You'll need a function that looks something like this:

function loadXMLContent(url)
  if verify-internet-explorer() Then
     xmlDoc = setup Microsoft.XMLDOM'
     return xmlDoc
  else if verify-firefox() Then
     xmlDoc = document.implementation.createDocument
     return xmlDoc
LVL 31

Expert Comment

ID: 20446842
Here, I went and looked at it a bit. The implementation could use some improvment, but the code below will probably work.  Warning: For some reason, the browser is very keen on not recognizing changes to the page. So you may have to clear browser cache and restart the browser for any changes to take effect. This is untested.

The code needs to go into the "MenuDisplay" form
function makeXML(src) {
	if (window.ActiveXObject) {
		xmlDoc=new ActiveXObject('Microsoft.XMLDOM');
		return xmlDoc;
	} else if (document.implementation && document.implementation.createDocument)  { // code for Mozilla, Firefox, Opera, etc.
		return xmlDoc;
	} else {
		alert('Your browser cannot handle this script');
var resulting='';
var oXMLDoc = makeXML('./menus.xml');
var oXSLDoc = makeXML('./divs.xsl');
function justDoIt(){
resulting = oXMLDoc.transformNode(oXSLDoc);

Open in new window


Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question