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

How to manage several users in nitrogen/inets erlang

I am building a simple web site for my family usage, using Nitrogen/Inets. The current version works as expected as long as I have a single client connected to the web server. If I try to connect a new user, the 2 sessions seems to share the same…
Pascal
  • 13,977
  • 2
  • 24
  • 32
1
vote
1 answer

I cannot access to nitrogen/inets server from any machine but the localhost

Thanks to many discussions in this forum, I found that I should be able to build the application I was planning to do for home usage based on Nitrogen. So I ran into Nitrogen tutorials, Demo and docs, and start to do some tests based on the self…
Pascal
  • 13,977
  • 2
  • 24
  • 32
1
vote
2 answers

How to get full URL of a page with Nitrogen?

I want to make certain pages of my site available only by https. I think it would be ok to recognize protocol right in the page.erl and then redirect to the right URL. Something like case Protocol of http -> wf:redirect('https://' ++…
akalenuk
  • 3,815
  • 4
  • 34
  • 56
1
vote
1 answer

Nitrogen - File upload

I can easily upload a file using Nitrogen's #upload{} element, it works great. However, I am using client side Javascript to create an html file upload form (not using #upload{} tag in Nitrogen .erl file), and not able to get it to work. Any ideas…
spkhaira
  • 821
  • 7
  • 18
1
vote
1 answer

How to determine referer in Nitrogen?

I know about $_SERVER['HTTP_REFERER'] in PHP, and I believe there is something as simple as that in Nitrogen, but I just can't find it in documentation.
akalenuk
  • 3,815
  • 4
  • 34
  • 56
1
vote
3 answers

Erlang cookies in Nitrogen

I'm trying to do call from nitrogen to a separate Erlang node on the same machine (currently testing it from the Nitrogen console, but the eventual goal is to have a call from a webapp to this other node). I've got an .erlang.cookie file set up in…
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
0
votes
2 answers

Destroying a Data Structure when program doesnot need it anymore -- Erlang

Certain functions that manipulate Tuples in Erlang, result into copies of new tuples after the operation. In most cases, the program is no longer interested in the old tuple copy from which a new one was made. lets look at an…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
0
votes
3 answers

Using Apache mod-proxy with Erlang Nitrogen

I have a CentOS box running a number of web applications and I use Apache to proxy requests to the various applications. All of them are working except an Erlang Nitrogen application which I can't seem to get working. I am running the Nitrogen app…
rancidfishbreath
  • 3,944
  • 2
  • 30
  • 44
0
votes
1 answer

Nitrogen through systemd services doesn't work

I am writing a tool (zxcV32/OpenRWC) that fetches wallpapers from Reddit and sets them to the monitor(s) using nitrogen. To make it easy to install and run automatically, I have created a deb package and a systemd service. When the service is…
zxcV32
  • 74
  • 1
  • 4
0
votes
1 answer

How to upload image in N2O erlang

I am setting up a new server in erlang n2o web framework, and want to upload image using #upload. How can I use upload event.
Aaron
  • 1
  • 1
0
votes
0 answers

Signing and verifying digital signatures in Erlang/OTP from other languages

I have an application where I've to verify digital signatures from different users. These users are programming is different languages/platforms, such as .NET, JAVA, C, etc; yet may application is developed in Erlang/OTP. When I test may application…
0
votes
1 answer

How do you make a button alert() the text of a textbox?

In "Introduction to Nitrogen", there is this example: body() -> #panel { style="margin: 50px;", body=[ #h1 { text="My Page" }, #label { text="Enter Your Name:" }, #textbox { }, #button { id=mybutton,…
7stud
  • 46,922
  • 14
  • 101
  • 127
0
votes
1 answer

OpenDaylight Geo-D setup

I am trying to set up nitrogen version of ODL in Geo-D configuration. As per the ODL documentation, initially I set up a cluster with 6 nodes(3 in active site and 3 nodes in standby site) with active side nodes' status as Voting members and Standby…
PdtrMe
  • 1
0
votes
1 answer

nitrogen: How to implement Autocompletion for in-place text box

I have a page with in-place texbox, so user could easy modify some data, is it possible to add auto-completion functionality? I would like it behaves as #textbox_autocomplete{}.
Anton Prokofiev
  • 937
  • 10
  • 28
0
votes
3 answers

Error while installing Nitrogen

while installing the nitrogen i had the following error. Following install instructions outlined in http://nitrogenproject.com/doc/tutorial.html, I pulled source from GitHub and ran the following command. msairam@passion:~/nitrogen$ make…
msairam
  • 11