Tag 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

How Nitrogen processes requests – part 2

Context In the last post we discussed how Nitrogen inits a new Context for each request and stores it in the process dictionary. Conceptually, Nitrogen uses Context to pass the page state from the server to browser and then, on … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Simple_Bridge | Tagged , , , , | 1 Comment

How Nitrogen processes requests – part 1

If you have used Nitrogen for a while, you might start wandering how Nitrogen actually processes your requests and what is happening under the hood. Unfortunately the documentation on this part is particularly patchy. There is a very good introductory … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Simple_Bridge | Tagged , , , , | Leave a comment