[UPHPU] ideas for a preference pane
jacob at fugal.net
Thu Jan 29 12:29:06 MST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Wade Preston Shearer wrote:
| I want the user to be able to choose which columns are displayed and in
| which order.
| I can't decide however about the best way to approach getting the values
| in a specific order. I have thought of several options, such as input
| fields where they simply type numbers next to the ones they have
| selected "on," radio buttons ranging from 1 to the max number of
| columns, etc... but each option that I have considered isn't flawless...
| meaning, I would have to clean the data. I want there to be only one way
| to fill the form out... meaning no to "on" columns can be in the same
| They only way that I figure this can be done is to either (a) have
| is checked as being first, then when you checked first for column seven,
| it will automatically un-check column four) or (b) to submit/refresh the
| page with each selection.
reload every time you change something. But using strict DOM and CSS
without reloading. I threw together this example page:
(The source is attached. The CSS is shamelessly borrowed and modified
from www.csszengarden.com, the 'A Garden Apart' theme by Dan
Obviously the page isn't a complete demonstration of what you want. For
example, there's no mechanism to submit the information. But you could
array to follow the display inside the 'exlcude', 'include', 'promote'
and 'demote' methods. Then when the page is submitted, run a function
that converts that array into a single text string and stores it in a
hidden input. Eg:
~ <form onsubmit='stashConfiguration()'>
~ <input type='hidden' name='configuration' />
~ <input type='submit' />
Let me know if you have any questions about how the DOM and/or CSS
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the UPHPU