Inline Edit Samples?

Aaron Zeckoski aaronz at vt.edu
Thu Jul 30 12:53:51 UTC 2009


I was actually hoping for something a little like jquery does with
their docs where they show simple usage. The tutorial seems to mostly
just talk about the markup and how it needs to be changed to work with
the inline edit stuff. That was somewhat helpful but it did not
actually include the sample JS I was looking for.

The other sample is nice but I am still having a hard time
understanding how things are meant to work.

Maybe I should just say how I think it works and then people can correct me.

1) I mark all my things I want to be editable with an id like
"some-thing_date_111" (where 111 is the id of the thing to be edited)
and a class "fluidInlineEdit".
2) I use jquery to get all the thing elements and then call (where
thingElement is my componentContainer which holds the text to be
edited):
fluid.inlineEdit(thingElement, {
    useTooltip : true,
    tooltipDelay : 500,
    listeners: {
       onFinishEdit: saveThing
    }
});
3) I get the id from the viewNode and do the save in my saveThing function.
Does that sound about right?
-AZ


On Thu, Jul 30, 2009 at 1:40 PM, Justin<justin.obara at utoronto.ca> wrote:
> Hello,
>
> There is a tutorial for it.
> http://wiki.fluidproject.org/display/fluid/Simple+Text+Inline+Edit+Tutorial
>
> Also you can take a look at our quick start example for inline edit.
> http://build.fluidproject.org/infusion/standalone-demos/quick-start-examples/inlineEdit/html/InlineEdit.html
>
> The code for that is provided with our release package (note that it doesn't
> get included in the custom build).
>
> I believe that is what you were looking for. Hope that helps.
>
> - Justin
>
> On 30-Jul-09, at 6:52 AM, Aaron Zeckoski wrote:
>
>> Are there any samples that show how to use the inline edit component
>> that is described here?
>> http://wiki.fluidproject.org/display/fluid/Simple+Text+Inline+Edit+API
>>
>> -AZ
>>
>> --
>> Aaron Zeckoski (azeckoski (at) vt.edu)
>> Senior Research Engineer - CARET - University of Cambridge
>> https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
>> http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile
>> _______________________________________________________
>> fluid-work mailing list - fluid-work at fluidproject.org
>> To unsubscribe, change settings or access archives,
>> see http://fluidproject.org/mailman/listinfo/fluid-work
>
> _______________________________________________________
> fluid-work mailing list - fluid-work at fluidproject.org
> To unsubscribe, change settings or access archives,
> see http://fluidproject.org/mailman/listinfo/fluid-work
>



-- 
Aaron Zeckoski (azeckoski (at) vt.edu)
Senior Research Engineer - CARET - University of Cambridge
https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile



More information about the fluid-work mailing list