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

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
Varvoura

Open in new window

varvouraAsked:
Who is Participating?
 
qwaleteeCommented:
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:

http://www.w3schools.com/xml/xml_parser.asp
0
 
qwaleteeCommented:
You did not include the code.
0
 
varvouraAuthor Commented:
ok, please see link below for a dynamic menu generator

http://www-10.lotus.com/ldd/sandbox.nsf/ecc552f1ab6e46e4852568a90055c4cd/2a3a68a850a91ac388256ab10074628f?OpenDocument&Highlight=0,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"

Thanks
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
varvouraAuthor Commented:
qwaletee,

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
0
 
qwaleteeCommented:
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'
     xmlDoc.load(url)
     return xmlDoc
  else if verify-firefox() Then
     xmlDoc = document.implementation.createDocument
     xmlDoc.load(url)
     return xmlDoc
  else
     suicide-on-incompatible-browser
end-of-function
0
 
qwaleteeCommented:
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');
		xmlDoc.async='false';
		xmlDoc.load(src);
		return xmlDoc;
	} else if (document.implementation && document.implementation.createDocument)  { // code for Mozilla, Firefox, Opera, etc.
		xmlDoc=document.implementation.createDocument('','',null);
		xmlDoc.load(src);
		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);
window.document.write(resulting);
}

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.