![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 40 Pomógł: 0 Dołączył: 1.03.2011 Ostrzeżenie: (0%) ![]() ![]() |
Witam napisałem sobie taką funkcje, przedstawiam istotny fragment:
W skupcie send_box.php jest kod zwracający returnem 0 albo 1. Jak ją odebrać w powyższej funkcji żeby dane dalej odpowiednio przetworzyć ? |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Czy tak ciezko zajrzec do dokumentacji?
http://api.jquery.com/jQuery.ajax/ success(data, textStatus, jqXHR)Function, Array I przykłady Cytat Example: Save some data to the server and notify the user once it's complete.
$.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); Example: Retrieve the latest version of an HTML page. $.ajax({ url: "test.html", cache: false, success: function(html){ $("#results").append(html); } }); -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 16.07.2025 - 14:29 |