background preloader

Javascript / Tools

Facebook Twitter

DuoCode | C#-to-JavaScript compiler. Opal: Ruby to Javascript Compiler. Esprima. Intercooler.js - Simple, declarative AJAX using HTML attributes. Omniscient.js. Benvie/continuum. New Tricks in XMLHttpRequest2. Introduction One of the unsung heros in the HTML5 universe is XMLHttpRequest. Strictly speaking XHR2 isn't HTML5.

However, it's part of the incremental improvements browser vendors are making to the core platform. I'm including XHR2 in our new bag of goodies because it plays such an integral part in today's complex web apps. Turns out our old friend got a huge makeover but many folks are unaware of its new features. XMLHttpRequest Level 2 introduces a slew of new capabilities which put an end to crazy hacks in our web apps; things like cross-origin requests, uploading progress events, and support for uploading/downloading binary data. This tutorial highlights some of the new features in XMLHttpRequest, especially those that can be used for working with files.

Fetching data Fetching a file as a binary blob has been painful with XHR. The old way to fetch an image: While this works, what you actually get back in the responseText is not a binary blob. Specifying a response format xhr.response. About php.js. Php.js is a resource that offers community-built JavaScript alternatives to PHP functions. Why on earth would you port php to js? To see if we canto learn JavaScriptto help others learn JavaScriptto see how php scripts perform with V8 strapped on their backsto profit from helpful functions like: strip_tags, strtotime, md5, strftime, number_format, wordwrap, vsprintf, and date, that are too high-level for JavaScript.

PHP is a language with many high-level functions and while they’re not always implemented as consistently as we’d like (mimicking their underlying C parts), they do get many programming jobs done without the need for additional libraries or abstraction. We recognize JS has beautiful language features, and we encourage you to learn them (never let php.js be an excuse not to!). That said, we do think it’s a challenge to port everything and decided to also port low-level PHP functions like strpos that have perfectly good (and more performant!) And what not. Contributing Licensing. Js2coffee: convert JavaScript code to CoffeeScript. AltJS compile-to-JavaScript language list. Home · kripken/emscripten Wiki. LLJS : Low-Level JavaScript. Cdnjs - the missing cdn.