Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ajax] Co jest z IE., prosta funkcja nie dla IE
gebp
post 24.02.2007, 17:03:43
Post #1





Grupa: Zarejestrowani
Postów: 180
Pomógł: 6
Dołączył: 10.04.2006

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


mam
Funkcje.js
  1. function tocos() {
  2.  
  3. advAJAX.get({ url: "test1.php",
  4. onLoading : function(obj) { document.getElementById("divg").innerHTML = "Loading..."; },
  5. onSuccess : function(obj) { document.getElementById("divg").innerHTML = obj.responseText; }
  6. });
  7. advAJAX.get({ url: "test2.php",
  8. onLoading : function(obj) { document.getElementById("divd").innerHTML = "Loading..."; },
  9. onSuccess : function(obj) { document.getElementById("divd").innerHTML = obj.responseText; }
  10. });
  11. advAJAX.get({ url: "t1.html",
  12. onLoading : function(obj) { document.getElementById("con").innerHTML = "Loading..."; },
  13. onSuccess : function(obj) { document.getElementById("con").innerHTML = obj.responseText; }
  14.  
  15. });
  16.  
  17. }

plik index.html
  1. <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-2" >
  2. <link rel="stylesheet" href="styl.css" type="text/css" />
  3. <script type="text/javascript" src="funkcje.js"></script>
  4. <script type="text/javascript" src="advajax.js"></script>
  5.  
  6. </head>
  7. <body>
  8. <div id="divg">
  9. <button onclick="tocos()">Pobierz </button>
  10. </div>
  11.  
  12. <div id="divd">
  13. test
  14. </div>
  15. <div id="con">
  16. test2
  17. </div>

Nie bardzo kumam czego pod FF działa bez zarzutu a w IE nic nie robi. Niestety większość użytkowników aplikacji którą tworze będzie używać IE i problem bardzo mnie pali.
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 18.07.2025 - 02:06