Hi David,

Thank you for your reply.  I *think* I understand what you say about the CSS based approach (which is the one I have to use as redesigning the form for the client would be too big a change at present.)

I'd like to confirm one thing though before I buy that book:

>> I'd suggest looking up the 'position:fixed' style.

Do you mean that the "position:fixed" style will keep the button fixed in the visible browser pane, regardless of me scrolling?


On Sun, Aug 31, 2008 at 11:44 AM, David Legg <david.legg@searchevent.co.uk> wrote:
Hi Paul,

I have a Loooonnnng CForm and the client would like the "Save" button to float so that it is always visible?

I should think your best bet would be to use a CSS stylesheet to fix the position of the save button.  You could treat the save button like the contents of a fixed footer at the bottom of the page.  I'd suggest looking up the 'position:fixed' style.  Be warned though that IE 5 and friends doesn't support this, so a work-around has to be done for those.  I'd recommend the sitepoint book: 'The CSS Anthology: 101 Essential Tips, Tricks & Hacks' [1] by Rachel Andrew if you are looking for ready made examples.  [I'm not affiliated to this book in any way!].

Another approach might be to break up the form into smaller groups and only show one group at a time.  An example can be found in the Multi-page wizard demo [2]

Hope that helps.
David Legg

[1] http://www.sitepoint.com/books/cssant2/
[2] http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/do-multipage.flow

To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org