john3859
Dołączył: 25 Sty 2011
Posty: 1639
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Wto 14:32, 22 Mar 2011 Temat postu: or using a link to an external page |
|
|
yilai:
[link widoczny dla zalogowanych]
[link widoczny dla zalogowanych]
http://www.rosj.fora.pl/motocykle,14/but-in-a-culture-full-of-celebrity-worship,61570.html#61964
(document.all) req=new ActiveXObject("Microsoft.XMLHTTP");else req=new XMLHttpRequest();When creating a web2.0 application, the idea is that whenever you would normally send data to the server and receive a response in return by submitting a form, or using a link to an external page, instead you implement it by using the XMLHTTP object to send the request or form in the background [link widoczny dla zalogowanych], and process the resulting data without causing the browser to reload. The XMLHTTP Object allows you to send requests synchronously or asynchronously, but since we are creating an AJAX application you will use asynchronous mode in almost all cases. When submitting form data [link widoczny dla zalogowanych], you can use either the GET or POST method [link widoczny dla zalogowanych], but in this article I will show you how to use POST with the XMLHTTP Object as that allows you the widest possible uses.Once you instantiate the XMLHTTP object, there are four simple commands to creating a web2.0 application. The "onreadystatechange" property is used for asynchronous mode to define a function that is executed whenever the state of the request changes (such as when it completes). The "open" method creates the request and the "send" method send the request. Also, the "setRequestHeader" method is used to specify the format of the data that is being submitted. Here is s
Post został pochwalony 0 razy
|
|