Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FAQ Topic - How do I run a server side script? (2010-09-05)

0 views
Skip to first unread message

FAQ server

unread,
Sep 4, 2010, 7:00:03 PM9/4/10
to
-----------------------------------------------------------------------
FAQ Topic - How do I run a server side script?
-----------------------------------------------------------------------

You trigger a server-side script by sending an HTTP request.
This can be achieved by setting the `src` of an `img`,
`Image`, `frame`, or `iframe`, or by using XHR, where supported.

An image will also
"swallow" the data sent back by the server, so that they will
not be visible anywhere.

var dummyImage = new Image();
dummyImage.src = "scriptURL.asp?param=" + varName;

Mozilla, Opera 7.6+, Safari 1.2+, and Windows IE 7
provide the `XMLHttpRequest` object
(Windows IE versions 5+, provides ActiveX to acheive an analagous
effect). `XMLHttpRequest` can send HTTP requests to
the server, and provides access the `responseText` or `responseXML`
(when the response is XML), and HTTP header information.

<URL: http://jibbering.com/2002/4/httprequest.html>
<URL: http://www.w3.org/TR/XMLHttpRequest/>
<URL: http://developer.mozilla.org/en/XMLHttpRequest>
<URL: http://msdn.microsoft.com/en-us/library/ms537505(VS.85).aspx>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

0 new messages