Solved

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

Posted on 2007-12-04
6
241 Views
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
Varvoura

Open in new window

0
Comment
Question by:varvoura
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
You did not include the code.
0
 

Author Comment

by:varvoura
Comment Utility
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
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
Comment Utility
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:varvoura
Comment Utility
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
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
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
 
LVL 31

Expert Comment

by:qwaletee
Comment Utility
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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now