# Remote scripting

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Remote_scripting
> Markdown URL: https://mediated.wiki/source/Remote_scripting.md
> Source: https://en.wikipedia.org/wiki/Remote_scripting
> Source revision: 1285835011
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

'''Remote scripting''' is a technology which allows scripts and programs that are running inside a browser to exchange information with a server. The local scripts can invoke scripts on the remote side and process the returned information. <!-- SPAN!! and see earliest below... '''Remote Scripting''' was developed by [Microsoft](/source/Microsoft)  -->

The earliest form of asynchronous remote scripting was developed before XMLHttpRequest existed, and made use of very simple process: a static web page opens a dynamic web page (e.g. at other target frame) that is reloaded with new JavaScript content, generated remotely on the [server side](/source/server_side).

The [XMLHttpRequest](/source/XMLHttpRequest) and similar "[client-side script](/source/client-side_script) [remote procedure call](/source/remote_procedure_call)" functions, open the possibility of use and triggering [web services](/source/web_services) from the web page interface.
 
The web development community subsequently developed a range of techniques for remote scripting in order to enable consistent results across different browsers. Early examples include [http://www.ashleyit.com/rs/jsrs/test.htm JSRS] library from 2000, the introduction of the Image/Cookie technique in 2000.

==JavaScript Remote Scripting==
'''JavaScript Remote Scripting''' ('''JSRS''') is a web development technique for creating interactive web applications using a combination of:
*HTML (or [XHTML](/source/XHTML))
* The [Document Object Model](/source/Document_Object_Model) manipulated through [JavaScript](/source/JavaScript) to dynamically display and interact with the information presented
* A transport layer. Different technologies may be used, though using a script tag or an iframe is used the most because it has better browser support than [XMLHttpRequest](/source/XMLHttpRequest)
* A data format. [XML](/source/XML) with [WDDX](/source/WDDX) can be used as well as [JSON](/source/JSON) or any other text format.

[http://www.blueshoes.org/img/javaScript/jsrs/jsrs.gif Schematic]

A similar approach is  [Ajax](/source/Ajax_(programming)), though it depends on the XmlHttpRequest in newer web browsers.

===Libraries===
* [http://www.ashleyit.com/rs/main.htm Brent Ashley's original JSRS library released in 2000]
* [http://www.blueshoes.org/en/javascript/jsrs/ BlueShoes JSRS with added encoding and OO RPC abstractions]
* {{webarchive |url=https://web.archive.org/web/20060414190045/http://simpletutorials.com/tutorials/jsrs/index.php |date=20060414 |title=Simple Tutorials: Javascript Remote Scripting with PHP}}
* [http://msdn.microsoft.com/en-us/library/ms974566.aspx MSDN article]

==See also==
* [Ajax](/source/Ajax_(programming))
* [Rich Internet application](/source/Rich_Internet_application)
<!-- circular link * [Javascript Remote Scripting](/source/JavaScript_Remote_Scripting)  -->

==External links==
*{{webarchive |url=https://web.archive.org/web/20060414190045/http://simpletutorials.com/tutorials/jsrs/index.php |date=20060414 |title=Simple Tutorials: Javascript Remote Scripting with PHP}}
*{{webarchive |url=https://web.archive.org/web/20110924143911/https://developer.apple.com/internet/webcontent/iframe.html |date=20110924 |title=Apple Developer: Remote Scripting with IFRAME}}

{{Web interfaces}}

Category:Web development

{{Compu-network-stub}}

---
Adapted from the Wikipedia article [Remote scripting](https://en.wikipedia.org/wiki/Remote_scripting) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Remote_scripting?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
