Skip to Main Content
JavaScript - Schritt für Schritt
book

JavaScript - Schritt für Schritt

by Steve Suehring
May 2011
Intermediate to advanced content levelIntermediate to advanced
480 pages
17h 59m
German
Microsoft Press Deutschland
Content preview from JavaScript - Schritt für Schritt
356
Kapitel 19: AJAX für Einsteiger
Eine AJAX-Antwort verarbeiten
Es lässt sich mit einer Antwort einfacher arbeiten, wenn sie synchron gesendet wird, da die Ausführung des
Skripts anhält, während auf die Antwort gewartet wird. Die Variable requestObj bietet hilfreiche Methoden,
um eine Antwort zu verarbeiten. Unter anderem ist damit der Zugriff auf die vom Server gesendeten Status-
codes und den Text der Statusmeldung möglich. Unabhängig davon, ob die Anforderung synchron oder
asynchron erfolgt, sollten Sie den Statuscode auswerten, um sich zu vergewissern, ob die Antwort erfolgreich
war (normalerweise durch den Status 200 angezeigt). ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Script: Das umfassende Referenzwerk

Java Script: Das umfassende Referenzwerk

David Flanagan

Publisher Resources

ISBN: 9783848320417Purchase bookSupplemental Content