I'm trying to send a keypress postback event from client to server.
The keypress event has to be defined on 'document', and I can get it
to popup an alert with the character when a key is pressed using pure
javascript. How do I get it to send this information (the character
has to be extracted from the event) back to Nitrogen in a postback? Is
this possible with the current framework?
Thanks,
Rohan
--
You received this message because you are subscribed to the Google Groups "Nitrogen Web Framework for Erlang" group.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitrogenweb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nitrogenweb?hl=en.
I changed the include_lib directives at the top of every page from
"nitrogen/include/wf.inc" to "nitrogen/apps/nitrogen/include/wf.inc",
which made it compile successfully, but can't figure out why it
doesn't error out when I make a request.
Any ideas?
> > nitrogenweb...@googlegroups.com<nitrogenweb%2Bunsubscribe@googlegr oups.com>
However, it looks the experimental branch breaks compatibility with
the master branch around the comet implementation, so I'd like to
continue using master.
How hard would it be for me to merge the #api stuff into my local
master? Does it just involve copying over action_api.erl and the
corresponding records and Javascript, or does this use some major new
stuff in experimental?
--
You received this message because you are subscribed to the Google Groups "Nitrogen Web Framework for Erlang" group.
To post to this group, send email to nitro...@googlegroups.com.
To unsubscribe from this group, send email to nitrogenweb...@googlegroups.com.
On Feb 23, 3:54 am, Torbjörn Törnkvist <to...@tornkvist.org> wrote:
> What about:
>
> wf:wire(Id, #event {type=keyup, postback=keyup}),
>
> Where Id is the id of e.g a textarea element.
>
> Then, take care of the event:
>
> event(keyup) ->
>
> [Input] = wf:q(Id),
> ...
>
> --Tobbe
>
> 2010/2/19 hanrelan <hanre...@gmail.com>
>
>
>
> > Hi,
>
> > I'm trying to send a keypress postback event from client to server.
> > The keypress event has to be defined on 'document', and I can get it
> > to popup an alert with the character when a key is pressed using pure
> > javascript. How do I get it to send this information (the character
> > has to be extracted from the event) back to Nitrogen in a postback? Is
> > this possible with the current framework?
>
> > Thanks,
> > Rohan
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Nitrogen Web Framework for Erlang" group.
> > To post to this group, send email to nitro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > nitrogenweb...@googlegroups.com<nitrogenweb%2Bunsubscribe@googlegr oups.com>