SUInPlaceEditor - can it be made to update a non-local component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SUInPlaceEditor - can it be made to update a non-local component

Sophie424
In some of my uses of in-place editor, the same model object also appears
elsewhere on the page. Is there a way (e.g. magic of #evaluator?) to do this
somewhere in the inPlaceEditor API?

  html span
    script: (html inPlaceEditor
      triggerInPlaceEditor: [ : value | self model text: value ];
      callback: [ :r | self localReRenderOn: r];
    with: [ self renderTextOn: html]

Thanks - Sophie



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: SUInPlaceEditor - can it be made to update a non-local component

Lukas Renggli
> In some of my uses of in-place editor, the same model object also appears
> elsewhere on the page. Is there a way (e.g. magic of #evaluator?) to do this
> somewhere in the inPlaceEditor API?

I don't think so, but you might want to check the underlying
JavaScript documentation:

    http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside