|
Posted by Moot on 08/29/07 20:08
On Aug 28, 6:49 pm, Steve Potter <steven.pot...@gmail.com> wrote:
> I'm working on a project where I would like to some information in a
> table (database entries) but I would like to have some of the commonly
> associated functionality like being able to sort by column, etc..
>
> It seems ridiculous to re-invent all of this functionality. I know
> there are Java Scripts out there that will turn an HTML textbox into a
> WYSIWYG editor, etc.. Does anyone make a class of for lack of a
> better term "Widgets" for use on the web. Similar to wxWindows for
> GUI programming for example?
>
> It seems that there should be a class that you can simply feed a PHP
> array and will produce a nicely formated output with the expected
> results. Maybe this is asking too much but even better if it
> integrated some AJAX to provide smoother functionality.
>
> Thanks,
>
> Steven Potter
If you are willing to go the AJAX route (ie: you are comfortable
requiring javascript being enabled to use the site), there's something
which I've been wanting to try but haven't had the chance yet.
Although currently in Beta, the Yahoo library (YUI) has a real slick-
looking datatable widget:
http://developer.yahoo.com/yui/datatable/
Browsing the examples, it looks like it does a whole slew of things
like pagination, sorting, in-line editing, dynamic column resizing,
etc. Like I said, I haven't had a chance to use it in production yet,
but would like to at the next opportunity. I use some of the other
YUI modules and have been consistently happy with it.
Otherwise, if you don't want to go the javascript route, I seem to
remember seeing a PEAR package for a datagrid, though I never used
it. You may want to look into that, also.
[Back to original message]
|