Monthly Archives: February 2013

Cowboy 0.8 experemental bindings for Nitrogen

I have been playing with a new Cowboy 0.8 release and built Simple_Bridge bindings for Nitrogen. Simple_Bridge fork for Cowboy 0.8 can be found here. I converted Nitrogen_Elements_Examples to use Cowboy 0.8 so you can use it as a starting … Continue reading

Posted in Cowboy, Erlang, Nitrogen, Nitrogen_Elements, Simple_Bridge | Tagged , , , | 2 Comments

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

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