[Seaside] Subcomponents, Multicounter example
Julian Fitzell
julian at beta4.com
Sat Aug 16 17:33:12 CEST 2003
fiberTel wrote:
> My knowledge about how HTML forms work are really limited. I
> understand from your answer that I can't have a form in one frame an
> the submit button in another without javascripting.
Right. The submit button needs to be inside the <form> tag, otherwise
it won't work without javascript.
> I need to present the big form (about 200 fields) and allow to scroll
> the form but keeping always visible the submit button and another info
> (company's name, address, etc.).
> Can I use divNamed:with: method to accomplish something like the thing
> I tried to described?
Well if you can't break up your form into logical chunks, you could do
something like the following. It should work in IE5, NS6, Mozilla, and
any CSS2 compliant browser and is actually relatively backwards
compatible in others (you just get the big long page essentially).
Untested:
renderContentOn: html
html divNamed: #container with:
[html form:
[html divNamed: #content with:
[20 timesRepeat:
[html textInputWithValue: '' callback: [:v | ]]]
html divNamed: #submit with:
[html submitButton]]]
style
^ '
#container {
height:100%;
}
#content {
overflow:auto;
position:absolute;
top:0px;
bottom:40px;
}
#submit {
position:absolute;
height:40px;
bottom:0px;
}
'
In this case, you'd still be better not to have that many fields on one
page, but I thought this might be interesting to the list in general anyway.
> I maybe able to split the form and submit chunks of it, or let submit
> the form in the last chunk.
> The user must check the data he filled in before submitting, having
> it in chunks make it harder to check jumping foward and back the
> form if I chose to submit in the last chunk.
> Thank you for your help, any suggestion would be welcomed.
> Mariano
>
Julian
More information about the Seaside
mailing list