Hello everyone. This is my first post at daniweb and I hope I can contribute to ellucidate doubts and problems and everybody here could help me out to bail out my "perverse" errors.

I am making a website and I am trying to load info from a .XML file into HTML variables, because I am using a multilingual webpage. I implemented the code and tested in all major browsers. IE6, IE7 and Google Chrome failed to show the text in the HTML page; Firefox, Opera and Safari worked superbly. This piece of code is where I think the problem resides:

function funcCarregaXMLDoc(nomedoc)
if (window.XMLHttpRequest) // IE7+, Firefox, Chrome, Opera, Safari
  xhttp=new XMLHttpRequest();
else // IE6, IE5
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
return xhttp.responseXML;


On Google Chrome there is a quite remarkable issue: The code above doesn't show any string in the webpage. But if I remove the line xhttp.send() all the string variables in the page will show "undefined".

Been looking the net for the solution but found alot of rubbish and other matters that didn't concearn my real problem.

Thanks in advance.

my guess is that nomedoc is null because of some chrome quirk. if that is not the problem then try POST instead of GET, that might be your problem.