Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Niall Cook on Aug 26, 2009 11:13
open dhtmlx forum
loadXML not working in Firefox but fine in IE

I have a external JS src reference in the head of the page (default.asp). This calls a .js file containing an initMenu() function (script.js). initMenu() is called from the <body onload> of default.asp.

Within the initMenu() function is a menu.loadXML command which calls the XML structure for the menu.

When I open default.asp in IE, the menu works fine. However, when I open it in FF or Safari on the Mac, the menu background appears, but no menu items. It appears that the menu.loadXML command does not work. I tried putting an alert immediately before and after the menu.loadXML line. This triggers both times in IE, but only when placed before the menu.LoadXML line in FF/Safari (and not after).

Any thoughts?
Answer posted by Alex (support) on Aug 27, 2009 03:05

Probably the xml isn't correct. 

Please, take a look at the following article. Possibly it is help to resolve the issue: http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Common_Problems_in_Grid.html#grid_art_comprob

If the problem still occurs, please provide generated xml that you try to load 

Answer posted by Niall Cook on Aug 27, 2009 03:22
Nothing in that link seems to apply. I don't get an Incorrect XML error. I have validated the XML and it checks out. As this is an intranet application, I don't want to post the XML in a public forum. Can you give me an email address I can send it to please?
Answer posted by Alex (support) on Aug 27, 2009 03:38

You can send xml to support@dhtmlx.com

Answer posted by Roberto on Oct 08, 2009 15:40
I solve this problem changing headers in loadXML(yourpage or xml), using Content-type: text/xml  , because IE automatically change headers to XML but FF doesn't.