there is not <fieldset> in nitrogen. what do i

9 views
Skip to first unread message

jason

unread,
Jan 31, 2012, 11:26:10 PM1/31/12
to Nitrogen Project / The Nitrogen Web Framework for Erlang
Hi all
i found that there is not <fieldset> in nitrogen, what do i.
please give me some advice
thanks everyone.

Russell Brown

unread,
Feb 1, 2012, 3:11:57 AM2/1/12
to nitro...@googlegroups.com
Hi

It is a very long time since I did any nitrogen, and this is from way back then, before nitrogen 1.0, but here[1] is a fieldset that I used then. Adapt and update as needed.

Also, didn't there used to be a githib repo of contributed elements?

Cheers

Russell

[1] https://gist.github.com/1715904

>
> --
> You received this message because you are subscribed to the Google Groups "Nitrogen Project / The 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.
>

Jesse Gumm

unread,
Feb 1, 2012, 3:29:32 AM2/1/12
to nitro...@googlegroups.com
Indeed there was/is. I had thought that that project was abandoned,
but it appears that some folks still work with it here and there.

https://github.com/vim/nitrogen_elements

I imagine quite a bit could be done to bring those elements up to 2.x

As for the fieldset element, while Russell's version is a pre-1.0
version, it's pretty close to being okay for 2.x. I recommend copying
it and having a look at one of the other elements like
element_link.erl to get a feel for creating your own variation of the
fieldset element.

That said, it would definitely be worthwhile to add fieldset and
legend to the official nitrogen dist.

-Jesse

--
Jesse Gumm
Sigma Star Systems
414.940.4866
gu...@sigma-star.com
http://www.sigma-star.com

Jesse Gumm

unread,
Feb 1, 2012, 3:30:23 AM2/1/12
to nitro...@googlegroups.com
So if anyone wants to have a crack at it, and give it a pull request.

-Jesse

郎咸武

unread,
Feb 2, 2012, 2:57:39 AM2/2/12
to nitro...@googlegroups.com

Thanks  Jesse Russell .

I useing 
 body=[
            "<fieldset class=\"textbox\">",
            #panel{class="holding username hasome", 
                body=[#textbox{id=username,next=passwd},
... to  save time.



Now I using nigrogen+exmpp+ejabberd as our framwork. Do you have any idea. 

2012/2/1 Jesse Gumm <gu...@sigma-star.com>
只为成功找方法,不为失败找理由

Jesse Gumm

unread,
Feb 2, 2012, 3:01:11 AM2/2/12
to nitro...@googlegroups.com
The REALLY easy way is pretty close to the way you're doing it.

Coincidentally enough, I ended up needing the fieldset today, so I'm
putting together one quickly and should be adding it to the official
Nitrogen repo soon, to be included in the upcoming 2.1.0 release.

-Jesse

2012/2/2 郎咸武 <langx...@gmail.com>:

郎咸武

unread,
Feb 2, 2012, 4:25:17 AM2/2/12
to nitro...@googlegroups.com
Thank your soon. I have new questions.
I want to include a page(htpp://192.168.1.73/topbar) in the some page(for example /home,/setting). like JSP .How should i do
thanks
-Jason
Reply all
Reply to author
Forward
0 new messages