Category Archives: Cowboy

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 add Nitrogen and Cowboy as dependency libs to your erlang application

I received several emails asking to give the steps how to add Nitrogen and Cowboy as dependency libs to an application. The similar questions came up few times in the past on the Nitrogen mailing list. I posted a while … Continue reading

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

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 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

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