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? (2009-11-12)

0 views
Skip to first unread message

FAQ server

unread,
Nov 11, 2009, 7:00:02 PM11/11/09
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 acheived by setting the ` src ` of an ` img `,
` Image `, ` frame `, or ` iframe `,
or by using XHR.

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.

http://jibbering.com/2002/4/httprequest.html

http://www.w3.org/TR/XMLHttpRequest/

http://developer.mozilla.org/en/XMLHttpRequest

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.

kangax

unread,
Nov 12, 2009, 5:08:24 PM11/12/09
to
FAQ server wrote:
> -----------------------------------------------------------------------
> FAQ Topic - How do I run a server side script?
> -----------------------------------------------------------------------
>
> You trigger a server-side script by sending an HTTP request.
> This can be acheived by setting the ` src ` of an ` img `,
> ` Image `, ` frame `, or ` iframe `,
> or by using XHR.
>
> 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

Isn't Mozilla a rather vague term in this context? What exactly is meant
by "Mozilla" here? Is it a set of browsers based on Gecko engine (such
as Firefox, Seamonkey and others) or one browser named Mozilla? If it's
one browser, do all versions of it provide `XMLHttpRequest` object? If
not, which versions do?

Chrome's global share is now bigger than that of Opera (according to
http://marketshare.hitslink.com/browser-market-share.aspx?qprid=0), so
why not include it in this list too?

> 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.
>

[...]

--
kangax

0 new messages