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

what is best way to show timer on page

I wanted to know is this really overhead to use comet to update timer over using javascript at client site and posting to server on specific time interval to log time if required? body() -> wf:comet(fun() -> counter(1) end), #panel {…
tumbudu
  • 699
  • 11
  • 26
0
votes
1 answer

Install Erlang Cassandra Cqerl

I have a Cassandra cluster that I need to connect with Nitrogen? I installed Cqerl as instructed yet cannot make the connection. I do not think i installed the dependency correctly. When trying to make the connection from the console i get…
0
votes
1 answer

Nitrogen get content of table

So, I have a nitrogen page, index.erl, which contains codes like this: body() -> [#table{ id = mytable, rows=[ #tablerow{ cells=[#tableheader{text="column a"}, #tableheader{text="column b"}, …
Not an ID
  • 2,579
  • 2
  • 21
  • 28
0
votes
1 answer

Determine HTTP method type

I'm trying to determine the HTTP method (GET, POST) send to an erlang module in nitrogen. I've added nitrogen as a dependency via rebar. I'm attempting to do this via the wf_context:request_method/0 from nitrogen_core. However I can't figure out how…
0
votes
0 answers

Nitrogen wf.hrl file is deleted with a warning

I am using a slim_version of cowboy, I have also tried that on slim_yaws on nitrogen. What puzzles me is the abrupt deletion of the wf.hrl file by the VM. I do not understand what causes this!! Here is what appears in the console. Warning. Deleted…
0
votes
0 answers

Nitrogen web framework auto internet detection

I tried to embed auto internet connection detection and server availability in my nitrogen driven application by including the script in the template bare.html available at http://github.hubspot.com/offline/ like this example below
0
votes
1 answer

Nitrogen: changing targetID breaks lightbox

I'm using Nitrogen & lightbox. I'm looking for some guidance after spending way too long trying to understand why a working example breaks as soon as I change the targetID of a lightbox. The fragment below works if I use "name_dialog" or…
dewd
  • 19
  • 2
0
votes
2 answers

Automatic redirection from port 80 to port 433 in nitrogen over Yaws and Cowboy

I am developing my application using nitrogen framework which runs over Yaws and also over Cowboy web servers. My clients only know this 'domain-name.xx'or 'www.domain-name.xx' which by default hits port 80 (unsecure http), yet always it want…
0
votes
1 answer

Using the Erlang client library from Riak in Nitrogen

This question is a continuation of Including the Erlang client lib which was asked before. I was able to include the library by changing: {mimetypes, ".*", {git, "git://github.com/spawngrid/mimetypes", {branch, master}}}, %% Uncomment the…
neildaemond
  • 656
  • 1
  • 8
  • 17
0
votes
2 answers

Installing an SSL certificate and running nitrogen webframe work over cowboy server over https

I am developing an application using nitrogen web framework over cowboy web server. When i run the server over http is works perfectly well. Now in production the application must run on https. I have modified the cowboy.config file in the etc…
0
votes
2 answers

How to read from post param?

I need to parse text file. This file is in post param. I have code like this: upload_file('POST', []) -> File = Req:post_param("file"), What should I do next? How to parse it?
cnaize
  • 3,139
  • 5
  • 27
  • 45
0
votes
1 answer

Usage of audio and video tag in Nitrogen

Still working on my personal web server, I was trying to use the html5 audio and video tags within Nitrogen. As there is no #audio nor #video records, I decided to insert html text directly in the page generated by nitrogen, the result looks like…
Pascal
  • 13,977
  • 2
  • 24
  • 32
-1
votes
2 answers

Erlang Nitrogen web framework with elixir language

I am developing webapp using erlang nitrogen web framework, studying elixir. Is there a way i can code in elixir and use nitrogen web framework and existing developed code ?
tumbudu
  • 699
  • 11
  • 26
1 2 3 4 5
6