Javascript

Userscripts: Augmenting and automating web browsing and debugging

If you’re a JavaScript developer and don’t know what “userscript” means, you should keep reading. Userscripts are a powerful way to enhance and personalize your browsing experience and also help in some specific debugging purposes (without the power of the Fiddler, but much easier to use). The implemention of the idea started off in 2004 …

Aria Templates 1.3.1

Aria Templates 1.3.1 is finally available for the community. As usual you can get if from github 1.3.1, our website or npm. Few words on our release process and versioning first. We usually release a stable version every 3 weeks. Each of this versions comes with new features and bugfixes. Version number is compatible with …

Cross-browser code is harder than you think

If you’re following JavaScript best practices or good patterns you know already how bad it is to extend native objects’ prototype, in this article we’ll see why this practice should be avoided and also why polyfills might hurt your feelings. Software is hard, and having to write code meant to run in different browsers versions …

Function rewrite and closure scope

The best thing about JavaScript is its implementation of functions. Functions are first-class objects. As such they can be constructed at run-time, passed as arguments to other functions, returned from a subroutine, or assigned into variables, objects, and arrays. These features provide the base for functional programming but require a better understanding of dynamic scoping. …

Standalone popups

In AriaTemplates, popups are widgets, it means you get to open a popup from within a template, using the following syntax: {@aria:Dialog { … } /} And you would then bind the visible property of that widget to some value in the data model in order to decide when the popup is visible and when …