I think you might be right Brian. I probably have to brush up more on java-script. Are there any examples of what your suggesting in prototype/rails somewhere I could look at? Do you know what event handlers I should be looking to for: - monitoring when a use clicks in a cell (i.e. to trigger going into editable mode) & - leaves a cell (i.e. clicks somewhere else outside the cell)
Can class name be used somehow can it? e.g. can you say: Listen for All Mouse Down events that occur in elements with class name XYZ? Not sure what you were getting at here exactly. thanks again Greg On Apr 17, 12:16 am, "Brian Williams" <[EMAIL PROTECTED]> wrote: > those are the only ones i know about. > > if you don't want the buttons to show up then you should probably do > something along the lines of creating the table with the editable fields and > then looping through all of the inputs and adding an event watcher of onblur > that will check the field to see if it has changed and if it has submit the > changes -- which might actually be optional if you provide a save button and > rely on the 'jesus saves and so can you' methodology of relying on the user > to save their work. > > thats about the last bit i can offer, and actually, thinking about it, is > probably the simplest if you give the input fields a common class name, and > it wouldn't require any additional libraries etc > > On Wed, Apr 16, 2008 at 9:47 AM, greghauptmann <[EMAIL PROTECTED]> > wrote: > > > > > thanks Brian - this one still pops up a sub-window to edit. I'm > > really after one along the lines of the Google Spreadsheet experience, > > or the ExtJS demo, where you edit directly in the cell area with no > > other dialog or OK/Cancel buttons coming up. Perhaps the YUI example > > is configurable though so I should have a look (and also try to find > > out if YUI is open source/free, etc) > > > I was actually thinking of some code that gives the most basic example > > of how to do this and then I could adapt myself. Most other ajax > > support I would need in the RoR environment would be covered by > > Prototype/Scriptaculus. > > > Any more suggestions for the most basic implementation of support for > > in-line editing of a table of data are welcome. > > > Regards > > Greg > > > On Apr 16, 11:26 pm, "Brian Williams" <[EMAIL PROTECTED]> wrote: > > > since you don't like tableKit > > > > I'll offerhttp:// > > developer.yahoo.com/yui/examples/datatable/dt_cellediting.htmlas my > > > last suggestion > > > > try not to be daunted by all of the code, once you start using some of > > the > > > YUI stuff the code gets easier to manage > > > > On Wed, Apr 16, 2008 at 9:22 AM, greghauptmann <[EMAIL PROTECTED] > > > > wrote: > > > > > Hi, > > > > > Any recommendations re a component/plugin/javascript library to give > > > > me an in-line editable table (spreadsheet like support), like google > > > > spreadsheets? > > > > > Tks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
