![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 27.05.2016 Ostrzeżenie: (0%) ![]() ![]() |
Panowie, nie działa funkcja default i nie moge ustawić domyślnej podstrony zeby sie wyświetlała...
Jakieś pomysły? Pierwszy raz sie bawie ajaxem Zawartość ajax.js: Kod disableButtons = false;
function loadArticle(id) { if(disableButtons) return; switch(id){ case 1 : url = "podstrona1.php";break; case 2 : url = "podstrona2.php";break; case 3 : url = "podstrona3.php";break; default : case 1; } disableButtons = false; startGETRequest(url, onComplete, onEnd); } function onComplete(text, xml) { var dataDiv = document.getElementById('dataDiv'); dataDiv.innerHTML = text; } function onEnd(text, xml) { disableButtons = false; } Ten post edytował kondziopel 28.05.2016, 12:01:59 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 15.09.2025 - 18:10 |