Hi.

I have some code, developed using Prototye (code works in IE8, Firefox
and Chrome) which displays a list of checkboxes in an order that is
alphabetically sorted and displayed top to bottom, left to right in
auto-sized columns and padded to fit the width of the container.

So, if the list of items is a,b,c,d, if these were added to a
container and the container could display them 2 wide, the display
would be ...

a b
c d

My code will display them ...

a c
b d

See http://twitpic.com/2ggng3 for a real example. Notice how the names
are arranged in columns and easier to read. Find all the SFS ones is a
LOT easier this way.

It is probably pretty raw code - I'm not a genius.

What I'd like to do is "componentize" it, turn it into something that
is as simple to use as ...

new cbGrid('cbGridContainer', {options});

where options would include the data to show on the grid and anything
else that can be configured.

Currently I have only 1 use for it but maybe others could use it too.
The use I have is to display a list of contract names. The list is
dynamic and retrieved via an AJAX call.

I'm willing to do the donkey work, but would like some advice on how I
go about doing this.

I'm happy to make the code open source (where's the best place to show
it ... github? I've just created a public repository (but I've never
used git properly ... )

So. Anyone interested in some handholding whilst I get to grips with this?

Or have I just re-invented the wheel?

Regards,

Richard Quadling.

-- 
Richard Quadling.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to