Category Archives: custom Nitrogen elements

How to make closable tabs with Nitrogen and jQuery UI 1.9

A minor annoyance with using jQuery UI lib is that some of the controls are missing obvious features. I don’t want to call the lib “half-baked” – jQuery UI is of good quality but sometimes you can’t help but to … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements, Uncategorized | Tagged , , , , , | Leave a comment

How to build a live datagrid with Nitrogen

One of the most useful element in Nitrogen Elements project is jqGrid control. jqGrid is a Nitrogen wrapper for a popular javasript library which allows to represent and manipulat tabular data on the web. There are lots of examples for … Continue reading

Posted in Cowboy, custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements, Uncategorized | Tagged , , , , | Leave a comment

Extended example with graphviz updates via Websockets

Native Websockets support is a very compelling reason to use Cowboy. (Yaws also supports Websockets natively as well so it is another alternative). I will give a simple example how to use Websockets with Nitrogen and Cowboy by extending on … Continue reading

Posted in Cowboy, custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements | Tagged , , , , | Leave a comment

How to draw graphviz graphs with Nitrogen

I built an initial version of a new control which allows to draw graphviz graphs with Nitrogen and added it to the collection of Nitrogen_Elements. As far as I know Erlang ecosystem doesn’t have a convenient library to draw dot … Continue reading

Posted in custom Nitrogen elements, Nitrogen, Nitrogen_Elements | Tagged , , , , , | Leave a comment

How Nitrogen processes requests – part 3

Last time we traced the steps that Nitrogen takes to initialize the Context and reached wf_core:run_catched function which builds the Response. Firstly, this function updates the Context with the page State which comes from the browser in the http Request … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements | Tagged , , , , , | Leave a comment

Announcing “Nitrogen Elements” 0.2.1

I have been working on the re-incarnated project “Nitrogen Elements” – which is a collection of useful Nitrogen GUI elements and now it is time to make a first release – v.0.2.1. The project contains the implementation for the following … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen, Nitrogen_Elements, Uncategorized | Tagged , , | Leave a comment

Use of extra_param in Nitrogen #event{}

I already briefly touched on how #event{} Nitrogen action allows to bind to jquery events. But #event{} has a pretty interesting feature extra_param which is worth extra post as it could be very useful. You can specify postback option for … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen | Tagged , , , | Leave a comment

How to enforce execution order of javascript actions in Nitrogen – take 2

I already blogged about one way to enforce execution order of javascript actions in Nitrogen. Initially I used javascript custom events which are supported in new specification for HTML 5. But, as it turned out, there is a much cleaner … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen | Tagged , , | Leave a comment

Menubar and jQuery Layout Elements for Nitrogen

Quite interestingly in jQuery UI library there is a distinction between “Menu” and “Menubar” elements, and even more intriguing “Menubar” element is missing from the official jQuery release and only present in development branch. jQuery UI Menu element allows vertical … Continue reading

Posted in custom Nitrogen elements, Erlang, Nitrogen, Uncategorized | Tagged , , | Leave a comment

Using Nitrogen with Cowboy and upgrade of Nitrogen_Elements to jQuery 1.10

jQuery team has recently announced the major releases to jQuery lib (to v1.9) and jQuery UI (to v1.10.0). The changes to both libraries are very large and quite frankly I feel like staying away for some time from jQuery 1.9. … Continue reading

Posted in Cowboy, custom Nitrogen elements, Erlang, Nitrogen, Uncategorized | Tagged , , , | Leave a comment