Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-B�cher Downloads Mit uns in Verbindung treten �ber uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
CSS 1.0
CSS 2.0
HLML
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
CVS
Python
Apple Script
PL/SQL Tutorial
SQL Server
PHP
.NET (dotnet)
Microsoft.Net
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
VC++
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Matlab
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Graphics
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
SEO
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Eclipse
J2ME
JBOSS
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Cobol
Assembly Language
Mainframe
Forth Programming
Lisp Programming
Pascal
Delphi
Fortran
OOPs
Data Warehousing
CGI Programming
Emacs Tutorial
Gnome
ILU
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Oracle
MySQL
Operating System
BSD
Symbian
Unix
Internet
IP-Masquerading
IPC
MIDI
Software Testing
Testing
Firewalls
SAP Module
ERP
ABAP
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
Netweaver
Customer Relationship Management
Production and Planning
Networking Programming
Corba Tutorial
Networking Tutorial
Microsoft Office
Microsoft Word
Microsoft Outlook
Microsoft PowerPoint
Microsoft Publisher
Microsoft Excel
Microsoft Front Page
Microsoft InfoPath
Microsoft Access
Accounting
Financial Accounting
Managerial Accounting


AJAX XMLHTTPRequest


Previous Next




  • Der XMLHttpRequest Gegenstand erm�glicht AJAX, den Antrag vom Benutzer und zum Bediener gegeben zu nehmen.



  • Das XMLHttpRequest

    Um Netzanwendungen in AJAX zu verursachen mu�t du mit dem Javascriptgegenstand vertraut werden, der das XMLHttpRequest genannt wird.

    Der XMLHttpRequest Gegenstand ist der Hauptschl�ssel zu AJAX. Er ist, seit Internet Explorer 5.5 im Juli 2000 freigegeben wurde, aber nicht v�llig entdeckt vor den Leuten vorhanden gewesen, die begonnen werden, um AJAX und �ber Netz 2.0 zu sprechen 2005.

    Unter wird einige der Methoden und der Eigenschaften gegeben, die du mit werden mu�t.

    Verursachen eines XMLHttpRequest Gegenstandes

    Unterschiedliche Datenbanksuchroutinen verwenden unterschiedliche Methoden, um XMLHttpRequest Gegenstand zu verursachen.

    Internet Explorergebrauch ein ActiveXObject.

    Andere Datenbanksuchroutinen verwendet errichtet im Javascriptgegenstand, der als XMLHttpRequest benannt wird.

    Ist hier der einfachste Code, den du verwenden kannst, um dieses Problem zu �berwinden:

    var XMLHttp=null

    if (window.XMLHttpRequest)
    {
    XMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
    XMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

    �ber Beispiel wird unten erkl�rt:

    Eine Variable XMLHttp zuerst verursachen, um deinen XMLHttpRequest Gegenstand zu benutzen. Den Wert auf Null immer einstellen.

    Dann pr�fen, wenn der Gegenstand window.XMLHttpRequest nur vorhanden ist. Dieser Gegenstand ist in den neueren Versionen der Datenbanksuchroutine wie Firefox, Mozilla und Oper vorhanden.

    Wenn er vorhanden ist, ihn verwenden, um einen neuen Gegenstand zu verursachen:

    XMLHttp=new XMLHttpRequest ().

    Wenn es nicht vorhanden ist, pr�fen, wenn ein Gegenstand window.ActiveXObject vorhanden ist. Dieser Gegenstand ist in Internet Explorerversion 5.5 und sp�ter auch vorhanden.

    Wenn er vorhanden ist, ihn verwenden, um einen neuen Gegenstand zu verursachen:

    XMLHttp=new ActiveXObject ().

    Ein neues Beispiel:

    Etwas Programmierer zieht es vor, die neueste und schnellste Version des XMLHttpRequest Gegenstandes zu verwenden.

    Das Beispiel unterhalb des Versuchs Last Microsofts zur neuesten Version �Msxml2.XMLHTTP�, vorhanden im Internet Explorer 6, bevor es zur�ck zu �Microsoft.XMLHTTP� f�llt, vorhanden in Internet Explorer 5.5 und sp�teres.

    var XMLHttp=null

    try
    {
    XMLHttp=new ActiveXObject("Msxml2.XMLHTTP")
    }
    catch(e)
    {
    try
    {
    XMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    }

    if (XMLHttp==null)
    {
    XMLHttp=new XMLHttpRequest()
    }

    Above example is explained below:

    First create a variable XMLHttp to use your XMLHttpRequest object. Always set the value to null.

    Then try to create the object the Microsoft , available in Internet Explorer 6 and later:

    XMLHttp=new ActiveXObject("Msxml2.XMLHTTP")

    If this catches an error, try the older (Internet Explorer 5.5) :

    XMLHttp=new ActiveXObject("Microsoft.XMLHTTP")

    If  XMLHttp still has a null value, try to create an object the "standard" way:

    XMLHttp=new XMLHttpRequest()

    XMLHttpRequest Methoden

    The open() method.

    The open() method sets up a request to the web server.

    The send() method.

    The send() method sends a request to the web server.

    The abort() method.

    The abort() method aborts the current web server request





    XMLHttpRequest readyState Eigenschaft

    Die readyState Eigenschaft definiert die gegenw�rtige Lage des XMLHttpRequest Gegenstandes.

    Der Code l��t eine Frage gegen eine XML Akte laufen und bringt das Resultat als HTML Format zur�ck.

    Zustand Beschreibung
    0 Der Antrag wird nicht initialisiert
    1 Der Antrag ist aufgestellt worden
    2 Der Antrag ist gesendet worden
    3 Der Antrag ist im Proze�
    4 Der Antrag wird durchgef�hrt

    readyState=0This stae wird verwendet, nachdem du den XMLHttpRequest Gegenstand verursacht hast, aber bevor du die ge�ffnete () Methode benannt hast.

    readyState=1 dieser Zustand wird verwendet, nachdem du die ge�ffnete () Methode benannt hast, aber, bevor du benannt hast, senden ().

    readyState=2This Zustand wird benutzt, nachdem du sendest benannt hast ().

    readyState=3 dieser Zustand wird verwendet, nachdem die Datenbanksuchroutine eine Kommunikation mit dem Bediener hergestellt hat, aber bevor der Bediener die Antwort durchgef�hrt hat.

    readyState=4 dieser Zustand wird verwendet, nachdem der Antrag durchgef�hrt worden ist, und die Wartedaten sind vollst�ndig vom Bediener empfangen worden.

    Anmerkung: Unterschiedliche Datenbanksuchroutinefestlichkeit als bereiter Zustand anders als. Alle Datenbanksuchroutinen nicht erwarten, um �ber alle Zust�nde eqally zu berichten. Einige berichten nicht 1 und �ber 0.

    F�r deine AJAX Netzanwendungen bist du wirklich nur interessierter Zustand 4. Das ist, wenn der Antrag durchgef�hrt wird und es sicherer Gebrauch die empfangenen Daten ist






    Previous Next

    HTML Quizes
    HTML Quiz
    XHTML Quiz
    CSS Quiz
    TCP/IP Quiz
    CSS 1.0 Quiz
    CSS 2.0 Quiz
    HLML Quiz
    XML Quizes
    XML Quiz
    XSL Quiz
    XSLT Quiz
    DTD Quiz
    Schema Quiz
    XForms Quiz
    XSL-FO Quiz
    XML DOM Quiz
    XLink Quiz
    XQuery Quiz
    XPath Quiz
    XPointer Quiz
    RDF Quiz
    SOAP Quiz
    WSDL Quiz
    RSS Quiz
    WAP Quiz
    Web Services Quiz
    Browser Scripting Quizes
    JavaScript Quiz
    VBScript Quiz
    DHTML Quiz
    HTML DOM Quiz
    WMLScript Quiz
    E4X Quiz
    Server Scripting Quizes
    ASP Quiz
    PERL Quiz
    SQL Quiz
    ADO Quiz
    CVS Quiz
    Python Quiz
    Apple Script Quiz
    PL/SQL Quiz
    SQL Server Quiz
    PHP Quiz
    .NET (dotnet) Quizes
    Microsoft.Net Quiz
    ASP.Net Quiz
    .Net Mobile Quiz
    C# : C Sharp Quiz
    ADO.NET Quiz
    VB.NET Quiz
    VC++ Quiz
    Multimedia Quizes
    SVG Quiz
    Flash Quiz
    Media Quiz
    SMIL Quiz
    Photoshop Quiz
    Gimp Quiz
    Matlab Quiz
    Gnuplot Programming Quiz
    GIF Animation Quiz
    Scientific Visualization Quiz
    Graphics Quiz
    Web Building  Quizes
    Web Browsers Quiz
    Web Hosting Quiz
    W3C Quiz
    Web Building Quiz
    Web Quality Quiz
    Web Semantic Quiz
    Web Careers Quiz
    Weblogic Quiz
    SEO Quiz
    Web Site Hosting Quiz
    Domain Name Quiz
    Java Quizes
    Java Quiz
    JSP Quiz
    Servlets Quiz
    Struts Quiz
    EJB Quiz
    JMS Quiz
    JMX Quiz
    Eclipse Quiz
    J2ME Quiz
    JBOSS Quiz
    Programming Langauges Quizes
    C Quiz
    C++ Quiz
    Visual Basic Quiz
    Data Structures Using C Quiz
    Cobol Quiz
    Assembly Language Quiz
    Mainframe Quiz
    Forth Programming Quiz
    Lisp Programming Quiz
    Pascal Quiz
    Delphi Quiz
    Fortran Quiz
    OOPs Quiz
    Data Warehousing Quiz
    CGI Programming Quiz
    Emacs Quiz
    Gnome Quiz
    ILU Quiz
    Soft Skills Quizes
    Communication Skills Quiz
    Time Management Quiz
    Project Management Quiz
    Team Work Quiz
    Leadership Skills Quiz
    Corporate Communication Quiz
    Negotiation Skills Quiz
    Database Quizes
    Oracle Quiz
    MySQL Quiz
    Operating System Quizes
    BSD Quiz
    Symbian Quiz
    Unix Quiz
    Internet Quiz
    IP-Masquerading Quiz
    IPC Quiz
    MIDI Quiz
    Software Testing Quizes
    Testing Quiz
    Firewalls Quiz
    SAP Module Quizes
    ERP Quiz
    ABAP Quiz
    Business Warehousing Quiz
    SAP Basis Quiz
    Material Management Quiz
    Sales & Distribution Quiz
    Human Resource Quiz
    Netweaver Quiz
    Customer Relationship Management Quiz
    Production and Planning Quiz
    Networking Programming Quizes
    Corba Quiz
    Networking Quiz
    Microsoft Office Quizes
    Microsoft Word Quiz
    Microsoft Outlook Quiz
    Microsoft PowerPoint Quiz
    Microsoft Publisher Quiz
    Microsoft Excel Quiz
    Microsoft Front Page Quiz
    Microsoft InfoPath Quiz
    Microsoft Access Quiz
    Accounting Quizes
    Financial Accounting Quiz
    Managerial Accounting Quiz

    Privacy Policy
    Copyright � 2003-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved.