[wp-hackers] Javascript callback upon Widget save

John Gadbois jgadbois at gmail.com
Thu Sep 9 19:50:26 UTC 2010

Thanks Andrew,

Sorry, I didn't mean a DOM event per se.  In my specific instance I have a
color picker initializer that I call on some DOM elements.  The plugin
probably doesn't use live(), so I'd like to reinitialize the color picker
after the Widget gets reloaded.  It might be nice in general to have the js
trigger custom events similar to actions on the PHP side.  Maybe it wouldn't
be useful in many cases, I'm not sure.  In my specific case it would be.


On Thu, Sep 9, 2010 at 3:44 PM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Thu, Sep 9, 2010 at 3:15 PM, John Gadbois <jgadbois at gmail.com> wrote:
> > Is there a Javascript callback that I can hook into when saving a widget
> in
> > the admin screen?  Since the widget Save button reloads the contents of
> the
> > widget panel, I'm losing some event handlers that I'd like to set back
> up.
> >
> I think what you might be looking for is http://api.jquery.com/live/.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list