Nice events work Tim.
I suppose you already know it, but with Hobo 2.0 you can also add Ajax
callbacks when you prepare an ajax form/button:
<form updates="#table, #list" success="run_this_after_success()">
Regards,
Ignacio
El 15/12/13 16:27, Tim Griffin escribi�:
> Hah!
>
> I was close, but needed a few changes.
>
> Firstly I had to use the newer (jQuery 1.7+) ".on()" event handler:
>
> $('#div-permanent-image-controls').on('contentchanged',
> '#div-image-controls', function(){ alert('do stuff'); })
>
> Secondly, I discovered I had to attach the event handler to DOM element
> that was /*always*/ on the page (e.g. a parent element of
> <div-image-controls>). I hadn't realized that as soon as ajax refreshes
> the <div-image-controls> element, its event handler disappears! So, I
> needed to use a "delegated event" as described in jQuery's .on
> <
http://api.jquery.com/on/> documentation, attaching the handler to an
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
hobousers+...@googlegroups.com.
> To post to this group, send email to
hobo...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/hobousers.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
Ignacio Huerta Arteche
http://www.ihuerta.net
Tel�fono: 0034 645 70 77 35
Email realizado con software libre