Hi all,
I've done a small .Js file to store all my small javascript functions inside.
And by now all of them worked fine.
Now I'm trying to put this function inside that file and it directly fails...
function onChangeComboBox(parametre, idDesti, php)
{
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{
document.getElementById(idDesti).innerHTML = this.responseText;
}
};
xmlhttp.open("POST",php+parametre,true);
xmlhttp.send();
}
After the MadMyche suggestion, I've seen the error message is
"temps.php:29 Uncaught ReferenceError: onChangeComboBox is not defined
at HTMLSelectElement.onchange (temps.php:29)"
viewed the page source code and opened the script file to see that the function is not there! even I can see it if I edit the file...
I'm sure I'm missing something stupid, but can't see it.
Thank you very much for your time and help!
What I have tried:
Different syntax in the path...