Reactive Extensions for JavaScript
We’re proud to announce the availability of Reactive Extensions for Javascript. This port brings the power of Reactive programming to JavaScript. It allows you to use the Rx combinators in JavaScript and it does this in a download size of less than 7Kb (GZipped). RxJS provides easy to use conversions from existing DOM, XmlHttpRequest and jQuery events to Rx push-collections, allowing users to seamlessly plug Rx into their existing JavaScript-based web sites.
To give RxJs a try, download the installer. The installer comes with documentation and a small animation-based sample. You can provide feedback on RxJS on the regular Rx forum, and of course help the Rx community to convert the 101 Rx samples to JavaScript!
For an introduction, watch the C9 Introduction to Reactive Extensions for JavaScript video:
Comments
Anonymous
April 12, 2010
The comment has been removedAnonymous
April 13, 2010
Use FromHtmlEvent, that method will call FromIEEvent on IE and FromDOMEvent on other browsers.Anonymous
April 13, 2010
Using FromHtmlEvent is working now. Thanks so much, JeffVa.Anonymous
April 21, 2010
hi, looks good. Can you put any async Rx example. Thanks,Anonymous
May 10, 2010
If interested in the JS Rx implementation, then Matthew Podwysocki's series of posts is a MUST READ: http://weblogs.asp.net/podwysocki/archive/tags/Reactive+Framework/default.aspx Here are a few of his posts: Creating Observables Creating Observers jQuery Integration Composing Callbacks From Blocking to Async Wikipedia Lookup Composing Deeper Bing Maps and Twitter Mashup Drag and Drop jQuery Live Event integration jQuery AJAX integration A Separation of Concerns Aggregates – Part 1 and Part 2 Join Operators Going “Parallel” with ForkJoinAnonymous
July 27, 2010
will there anything for unmanaged environment such as C++, etc.Anonymous
November 19, 2010
Hello, RxJs is great, the documentation about it is a bit confusing to me. Several pages like this one say, "To give RxJs a try, download the installer." The link does not lead to an installer but a rar file. The other thing is that Rx.Observable.XmlHttpRequest does not work on my side. Is there any sample using this function? the sample in the blog comes without source code, and writing the source code from the sample does not work on my side, because this function is missing. Thx for any clarification. tAnonymous
November 19, 2010
adding rx.html.js did it. would be great to see this in the docu. "Assembly: RxJS (in RxJS.dll)" is quite misleading :-)