Hi,
I managed to get this function in a ajax script working for all browsers except IE!
function ShowPrevSlides(selcat,selpic,catno) {
objXmlHttp=GetXmlHttpObject(PrevMenuResponse);
objXmlHttp.open("GET",url1 + "?id=" + selcat);
objXmlHttp.selcat = selcat;
objXmlHttp.selpic = selpic;
objXmlHttp.catnr = catno;
objXmlHttp.send(null);
}
The problem is that I need those variables to be send in this response function, n.l. PrevSlide():
function PrevMenuResponse() {
if (objXmlHttp.readyState == 4) {
if (objXmlHttp.status == 200) {
document.getElementById("menu-design").innerHTML='';
document.getElementById("menu-design").innerHTML=objXmlHttp.responseText;
PrevSlide(objXmlHttp.selcat,objXmlHttp.selpic,objXmlHttp.catnr)
}
} else {return}
}
It might be I'm using a bug in my advantage but it realy works on FF (mac and windows) and Safari (mac) but it wont work in IE 6 or IE 7
Is there any other way to do this?
Thanks in advance
Niels