hi,
im trying to get this piece of script work –
thats the relevant piece of html:
[CODE]<a href=”#” onclick=”showfilm(“antoine_doinel.html”); ”
class=”film_menu”>Antoine Doinel</a>
and thats the js function:
[CODE]function showfilm(kinofile) {
alert(“function was called”);
try{
var oxmlhttp = new XMLHttpRequest();
}
catch (error)
{
try{
var oxmlhttp = new ActiveXObject (“Microsoft.XMLHTTP”);
}
catch (error){
return false;
}
}
oxmlhttp.open(“GET”, kinofile, true);
oxmlhttp.send(null);
document.getElementById(“texts”).innerHTML = oxmlhttp.responseText;
}
i only started to write it, and im new to js, so i dont think the function works,
i just dont understand why i dont see the alert at all…?? ? ?