Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

in linea

Domestico Codici sorgente E-Libri Trasferimenti dal sistema centrale verso i satelliti Metterseli in contatto con Circa noi

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


Richiesta del HTTP di XML
Previous Next



Oggetto di richiesta del HTTP di XML

Piattaforma:

Mozilla su tutte le piattaforme, sull'Internet Explorer su Windows, safari sul Mac OS-X, su Konqueror in KDE, su IceBrowser su Java e sull'opera su tutte le piattaforme compreso Symbian fornisce un metodo per il Javascript del lato del cliente per fare le richieste del HTTP. Dal humble comincia come oggetto stranamente chiamato con pochi ammiratori, esso è sbocciato per essere la tecnologia di nucleo in qualcosa AJAX denominato [1].




Perchè oggetto di richiesta del HTTP di XML?

L'oggetto di richiesta del HTTP di XML non è limitato a usando con XML, esso può chiedere o trasmettere alcun tipo di documento, anche se i flussi binari dealing with possono essere problematici nel Javascript.


Che cosa è una richiesta del HTTP?

Con la richiesta del HTTP un Web page fa una richiesta ottenere una risposta da un web server - senza ricaricare la pagina. L'utente rimarrà alla stessa pagina e lui o lei non noterà che gli scritti potrebbero chiedere le pagine, o trasmette i dati ad un assistente nei precedenti.


Attraverso l'oggetto di XMLHttpRequest, uno sviluppatore di fotoricettore può cambiare una pagina con i dati dall'assistente dopo che la pagina abbia caricato.

Google suggerisce sta usando l'oggetto di XMLHttpRequest per generare un'interfaccia molto dinamica di fotoricettore: Quando cominciate scrivere in scatola di ricerca del Google, un Javascript trasmette le lettere fuori ad un assistente e l'assistente restituisce una lista dei suggerimenti.




Se oggetto di XMLHttpRequest un campione di W3C?

No, oggetto di XMLHttpRequest non è un campione di W3C.

Il Livello 3 di W3C DOM “carico e risparmi„ la specifica contiene una certa funzionalità simile, ma questi non sono effettuati in alcuni browsers ancora. Così, dal momento che l'oggetto di XMLHttpRequest ha dovuto trasmettere una richiesta del HTTP da un browser.




Come generare un oggetto di XMLHttpRequest

In Internet Explorer, secondo la versione di MSXML li ha installati generano l'oggetto usando nuovo ActiveXObject (“Msxml2.XMLHTTP„) o nuovo ActiveXObject (“Microsoft.XMLHTTP„). In Mozilla e nel safari usate i nuovi usi di XMLHttpRequest () IceBrowser ancora un altro metodo il metodo di window.createRequest ().

Ciò significa che dovete mostrare lo scritto differente ai browsers differenti, come che impianti in uno, errore di volontà in un altro. Lo scritto sotto fa questo e se non è sostenuta, la variabile è regolata a falso per tenere conto i messaggi ed il recupero di errore adatti con degradare ai metodi più normali di transazione del HTTP quando l'oggetto non è disponibile. Questa degradazione è importante, anche in IE che gli oggetti possono essere ostruiti spesso dalle regolazioni un po'sollevate di sicurezza (popolare dovuto i fori comunemente sfruttati naturalmente). Nel possibile degradare, alcuni metodi sono parlati di sotto, se realmente non potete, io suggerirebbe fornire un aswell alternativo della pagina. GMail per esempio ha detto che forniranno una versione più di meno esigente in avvenire, eventualmente senza il Javascript affatto, degradazione completa.

 


var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
}
}
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}
 


Per fare una richiesta del HTTP?

Per fare un HTTP chiederli dire all'oggetto di richiesta del HTTP di XML al che specie della richiesta del HTTP desiderate ed al quale URL desiderate chiedere. Fornire una funzione da denominare quando come la richiesta sta facenda ed infine che cosa, (se c'è ne) le informazioni che desiderate trasmesso avanti nel corpo della richiesta.

Il seguente scritto fa una richiesta di OTTEN per il Relative URL “text.txt„ (riguardante la pagina di chiamata) che fornisce la funzione, che controlla la proprietà del readyState ogni volta ha denominato e quando ha il valore 4 - significando il carico è completa, visualizza il responseText all'utente con un allarme.

 

xmlhttp.open("GET", "test.txt",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
alert(xmlhttp.responseText)
}
}
xmlhttp.send(null)
 




Il riferimento dell'oggetto di XMLHttpRequest

Metodi

Method Description
abort() Cancels the current request
getAllResponseHeaders() Returns the complete set of http headers as a string
getResponseHeader("headername") Returns the value of the specified http header
open("method","URL",async,"uname","pswd") Specifies the method, URL, and other optional attributes of a request

The method parameter can have a value of "GET", "POST", or "PUT" (use "GET" when requesting data and use "POST" when sending data (especially if the length of the data is greater than 512 bytes.

The URL parameter may be either a relative or complete URL.

The async parameter specifies whether the request should be handled asynchronously or not. true means that script processing carries on after the send() method, without waiting for a response. false means that the script waits for a response before continuing script processing

send(content) Sends the request
setRequestHeader("label","value") Adds a label/value pair to the http header to be sent

Proprietà

Property Description
onreadystatechange An event handler for an event that fires at every state change
readyState Returns the state of the object:

0 = uninitialized
1 = loading
2 = loaded
3 = interactive
4 = complete

responseText Returns the response as a string
responseXML

Returns the response as XML. This property returns an XML document object, which can be examined and parsed using W3C DOM node tree methods and properties

status Returns the status as a number (e.g. 404 for "Not Found" or 200 for "OK")
statusText Returns the status as a string (e.g. "Not Found" or "OK")



Previous Next

Keywords: xmlhttprequest object, xmlhttprequest ajax, javascript xmlhttprequest, xml http request, xml http request object, http content type, http content length, asp net http request, http keep alive, http user agent, http web server, asp net xml, request content length, internet explorer xml, request user agent, request content type, http internet explorer, request asp net, http asp net, http xml request.


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-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved.