Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
awesome, thanks. R. On Wed, 2011-02-23 at 07:59 -0800, LLTYK wrote: > See the ZoneUpdater code: > http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html > > Disable the builtin actionlink behavior and do all you want your self > (zoneupdater shows how to do the zone part, with con

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
See the ZoneUpdater code: http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html Disable the builtin actionlink behavior and do all you want your self (zoneupdater shows how to do the zone part, with context parameter for sending little bits of information). I assume "fire back any

Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
Basically the page I have renders a filesystem tree, which the user can browse and select nodes in. It's built completely dynamically in javascript, within a Tap zone. When a user has finished browsing and clicks "Save" I need to a) fire back any selected nodes and b) update the zone. What I se

Re: T5.2 mixin example

2011-02-23 Thread LLTYK
The wiki examples aren't terribly different, just change RenderSupport to JavaScriptSupport. And the addScript method may have changed slightly as well. var SomeMixin = Class.create(); SomeMixin.prototype = { initialize : function(element,zone) { Event.observe($(el

Re: T5.2 mixin example

2011-02-23 Thread Richard Hill
With respect to the below question, it occurs to me that as I am wanting to submit data with my own js, i need to wait for the response before continuing with the actionlink event (update zone if good, don't otherwise) An alternative approach would be to include my data in the actionlink POST req

T5.2 mixin example

2011-02-23 Thread Richard Hill
Hi, I'm new to mixins and am looking for an example on how to create one. The one on the wiki is out of date (uses renderSupport). Basically what I want to do is have my own js function added to a single actionlink instance which, when the link is clicked, does an ajax update of some data on the