Kod
JavaScript - http://127.0.0.1/IDU/index.php?p=1&action=add_teacher_form
Event thread: change
Error:
name: ReferenceError
message: Statement on line 7: Reference to undefined variable: advAjax
Backtrace:
Line 7 of inline#1 script in http://127.0.0.1/IDU/index.php?p=1&action=add_teacher_form
advAjax.get({url : "getClasses.php?school_id=" + schoolid, onSuccess : (function (obj)
{
document.getElementById("classes").innerHTML = obj.responseText;
}
), onError : (function (obj)
{
alert("Error: " + obj.status);
}
)});
Line 1 of script
listClasses(this.options[this.selectedIndex].value);
At unknown location
[statement source code not available]
takie cos mi wyrzuca operaEvent thread: change
Error:
name: ReferenceError
message: Statement on line 7: Reference to undefined variable: advAjax
Backtrace:
Line 7 of inline#1 script in http://127.0.0.1/IDU/index.php?p=1&action=add_teacher_form
advAjax.get({url : "getClasses.php?school_id=" + schoolid, onSuccess : (function (obj)
{
document.getElementById("classes").innerHTML = obj.responseText;
}
), onError : (function (obj)
{
alert("Error: " + obj.status);
}
)});
Line 1 of script
listClasses(this.options[this.selectedIndex].value);
At unknown location
[statement source code not available]
a to kod javascript na stronie:
<script type="text/javascript" language="JavaScript"> function listClasses(schoolid){ advAjax.get({ url: "getClasses.php?school_id="+schoolid, onSuccess : function(obj) {document.getElementById('classes').innerHTML= obj.responseText; }, onError : function(obj) { alert("Error: " + obj.status); } }); }; </script>
mecze sie z tym juz caly dzien :/ mam advAjax zadeklarowana przeciez w pliku advajax.js nie wiem o co chodzi to samo mi firefox wyrzuca znaczy nie to samo ale tez ze advAjax not defined. Prosze o pomoc