Hi magev,
I will probably need some forms myself for my tweb-at-home [1]
project, so I thought, I'll give it a try.
I created a "quick and dirty" mashup [2]. I did use the
phpform.org to
create a form, similar to yours, just to see, how they do the html
structure + css styling / theming ... I did remove all IDs since they
don't work with TW, if you open more than one form at the same time.
There is only one ID left, which needs ot be removed in the future ...
stackoverflow pointed me to a "form to json" object serializer, that
creates a nice javascript object, that can be easily used to create a
tiddler. It may be even possible to create a form, that mimics the
whole tiddler structure. the important parts are <input
name="elementName" ...
Since you want to do some form validation, I don't want to do it on my
own, so I used jQuery.validation plugin [3], which makes it much much
easier and the code imo is much more readable too. Because it isn't
part of the form.
As I wrote: my testpage [2] is exactly that. I'll move it to a propper
place, when it is more mature.
The validation plugin doc [4] is a bit confusing, so it'll need some
more testing. ...
have fun!
mario
[1]
http://tweb-at-home.tiddlyspace.com
[2]
http://aassddff.tiddlyspace.com/#online-form-creator%20form
[3]
https://github.com/jzaefferer/jquery-validation
[4] validation docs:
http://docs.jquery.com/Plugins/Validation