mozilla

Compare Revisions

nsIXMLHttpRequest

Change Revisions

Revision 59574:

Revision 59574 by Sheppy on

Revision 59575:

Revision 59575 by Cancerbero sgx on

Title:
nsIXMLHttpRequest
nsIXMLHttpRequest
Slug:
nsIXMLHttpRequest
nsIXMLHttpRequest
Tags:
NeedsTechnicalReview, Interfaces, XMLHttpRequest, "XPCOM API Reference", "XPCOM Interface Reference"
NeedsTechnicalReview, Interfaces, XMLHttpRequest, "XPCOM API Reference", "XPCOM Interface Reference"
Content:

Revision 59574
Revision 59575
tt264    </p>
265    <h3 name="Example_code">
266      Example code
267    </h3>
268    <p>
269      This is a simple example code for opening a simple HTTPRequ
 >est from a xul application (like a mozilla extension) without usi
 >ng observers:
270    </p>
271    <pre class="eval">
272 var req = Components.classes["@mozilla.org/xmlextras/xmlhttprequ
 >est;1"].createInstance();
273 req.open('POST', "http://www.foo.bar:8080/nietzsche.do", true);
274 req.send('your=data&amp;and=more&amp;stuff=here');
264    </p>{{ wiki.languages( { "pl": "pl/NsIXMLHttpRequest" } ) }}275</pre>{{ wiki.languages( { "pl": "pl/NsIXMLHttpRequest" } ) }}

Back to History