Can anyone help me on this code? Its some Ajax code that should change both the currency and language when a link is clicked on our website. The code works in FireFox, but not correctly in IE. In Firefox, it changes the language and currency correctly and reloads the page. In IE it only changes the currency and then reloads the page. I tried swaping and even removing the currency line but it still wont change the language. Whats weird though, that i just found is that it will change between German and French, but wont change back to English, i got French down as fr_FR, German down as de_DE and English down as en_GB.
<a onclick="loadXMLDoc(1,'en_GB');" title="United Kingdom"><img src="/images/gb.gif" align="United Kingdom" title="United Kingdom" /></a>
function GetXmlHttpObject() { var objXMLHttp = null; if (window.XMLHttpRequest) { objXMLHttp=new XMLHttpRequest(); } else { objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP"); } return objXMLHttp; } function loadChannelData(url) { var xmlHttp = GetXmlHttpObject(); if (xmlHttp == null) { return; } xmlHttp.open("GET", url, true); xmlHttp.send(null); } function loadXMLDoc(currency, language) { loadChannelData("/app/site/backend/setshopperlanguagelocale.nl?selshopperlanguage=" + language); loadChannelData("/app/site/backend/setshoppercurrency.nl?selcurrency=" + currency); window.location = window.location; }