Questions tagged [nitrogen]

The Nitrogen Web Framework is a framework for building full-stack Erlang web applications.

The Nitrogen Web Framework is for making rich web applications with an emphasis on AJAX and Comet, and uses full-stack Erlang, using the Erlang webserver of your choice: Inets, Mochiweb, Yaws, or Webmachine.

Created by Rusty Klophaus (@rustyio)

Resources:

Home page with demos and tutorials: http://www.nitrogenproject.com

Github: http://github.com/nitrogen

Google Groups: http://groups.google.com/group/nitrogenweb

IRC: irc.freenode.net // #nitrogen

Twitter: @nitrogenproject

88 questions
1
vote
0 answers

Starting ibrowse to support unlimited requests to the server

I am using ibrowse to make POST and GET requests to the external server but I have issues when it comes to supporting frequent and simultaneous requests. I start ibrowse with default settings: application:start(ibrowse). Then I use ibrowse to…
1
vote
1 answer

Nitrogen wf:wire() does not work for dynamic content

I have 2 modules: test2 Module create div element with a button id = wf:temp_id() wire #alert{} event to it. return these HTML elements so they could be used by other modules. test Module create page content with a button myBtn and postback…
Anton Prokofiev
  • 937
  • 10
  • 28
1
vote
0 answers

nitrogen console Segmentation fault(core dumped)

I download nitrogen in http://nitrogenproject.com/downloads, and what I download is nitrogen-2.3.1-mochiweb.tar.gz, a linux binares. When I run ./bin/nitrogen console ,it's error "/lib64/libc.so.6:versionGLIBC2.14" not found. And after I installed…
jianwei
  • 3,561
  • 3
  • 11
  • 4
1
vote
2 answers

Uncaught ReferenceError: Nitrogen is not defined

I am running a Nitrogen web framework over Yaws driven site. It has been working properly on all browsers for the last three years. But recently postbacks could unpredictably fail to respond in Google Chrome and Opera. with the error in the console…
1
vote
1 answer

Couchdb and Nitrogen

How to add Key/value pairs to existing couchdb document through nitrogen web framework? ecouch:doc_update(DBName,DocId,DocValue) is not returning true when I was trying to implement.
Anonymous
  • 11
  • 2
1
vote
0 answers

#spinner{} element fails two worker when Nginx is the reverse proxy in front of Nitrogen

I have running my Nitrogen driven application directly however because i want to use Nginx load-balancing magic i found out that the progress notifier of Nitrogen, the Spinner is not showing at all. I followed the example as at Nitrogen…
1
vote
1 answer

Storing and retrieving photo files from riak through nitrogen using riak-erlang-client

I am running a riak cluster of 5 nodes which i connect to through a protocol buffer client riak-erlang-client. I installed riak-erlang-client as a nitrogen plugin as i suggested at this stackoverflow link. I know how to upload files through the…
1
vote
1 answer

Yaws fails to scale on nitrogen during execution of wf:q_pl(KeyList)

I have gotten a shocking error when running Nitrogen over Yaws when executing this nitrogen function wf:q_pl(KeyList). Well when length(KeyList) approx less 40 it worked but when length(KeyList) grew to bigger values about 200, this error was thrown…
1
vote
1 answer

How do I get pages like src/pages/myrootpage.erl to show up at http://mysite.org/myrootpage using nitrogen?

Nitrogen does not seem to like pages being at the root url path, only addon paths like /web/ is there some way to get pages to show up at the root url like /mypage ?
bfrog
  • 911
  • 1
  • 9
  • 6
1
vote
1 answer

Making nitrogen over Yaws from github.com

I am using Ubuntu 12.04LTS with all softwares upgraded according to the software manager utility I am trying to create a nitrogen application over yaws from the nitrogenproject site using git clone https://github.com/nitrogen/nitrogen make…
1
vote
1 answer

Two quick consecutive calls to wf:insert_bottom end up in the reverse order

Using Nitrogen, the Erlang web framework, I have the following method that receives messages and adds them to the bottom of an html element: receive_messages() -> receive Message -> io:format("~p received ~p", [self(), Message]), …
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
2 answers

Are events always run in the same process in Nitrogen?

I'm taking about event function in Nitrogen, the Erlang web framework, in a web module that is run when you get a postback. Does event always run in the same process for the same web client (that is, browser window or frame). I've recall at least…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
2 answers

How do you unwire an action in Nitrogen?

In Nitrogen, the Erlang web framework, you wire actions like this: wf:wire(send_message, #event { type=click, postback=send_message }) but if after that you run wf:wire(send_message, #event { type=click, postback=send_message2 }), then you get the…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
1
vote
1 answer

Erlang nitrogen file download

I need to provie file download feature in my nitrogen app. In principle I need to set headers like this: wf:header("Content-Disposition", "attachment; filename=\"" ++ Filename ++ "\""), but now I can't find a function in Nitrogen API to send data…
Luman75
  • 878
  • 1
  • 11
  • 28
1
vote
1 answer

Nitrogen Server

I would like to know which server is the best to use for the Nitrogen Web Framework? Of the 5 listed on the site, I have already removed Inets(not recommended for production) and WebMachine. Left with only Mochweb, Yaws and Cowboy. I also noted on…
samaras
  • 235
  • 4
  • 20