[Product-Developers] plone.app,jquerytools - beforepost/afterpost

Radim Novotny novotny.radim at gmail.com
Tue Feb 16 06:32:26 UTC 2010


Hi all,

I'm trying to use beforepost/afterpost hooks in the recent 
plone.app.jquerytools prepOverlay method, but without success.

I'm using the following definition:

     jq("a.add-record").prepOverlay({
        subtype:'ajax',
        urlmatch:'$', urlreplace:' #region-content>*',
        formselector:'form',
        noform: 'reload',
        closeselector:'[name=form.button.Cancel]',
        afterpost: function(data) { alert('blah') }
    });

but "nothing" happens. I've tried to debug it using Firebug, but it 
seems beforepost/afterpost definitions are not transferred through 
el.data().

Anyone has working example of this feature, please ?

Thanks
Radim





More information about the Product-Developers mailing list