Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [advAjax] problem advAjax not defined
piotrekkr
post
Post #1





Grupa: Zarejestrowani
Postów: 386
Pomógł: 25
Dołączył: 28.09.2005

Ostrzeżenie: (0%)
-----


witam
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 opera

a to kod javascript na stronie:
  1. <script type="text/javascript" language="JavaScript" src="js/advajax.js"></script>
  2. <script type="text/javascript" language="JavaScript">
  3. function listClasses(schoolid){
  4. advAjax.get({
  5. url: "getClasses.php?school_id="+schoolid,
  6. onSuccess : function(obj) {document.getElementById('classes').innerHTML= obj.responseText; },
  7. onError : function(obj) { alert("Error: " + obj.status); }
  8. });
  9. };


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
Go to the top of the page
+Quote Post

Posty w temacie
- piotrekkr   [advAjax] problem advAjax not defined   28.09.2006, 19:17:44
- - Fallout   advAJAX zamiast advAjax   28.10.2006, 12:16:03


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 16:54