[Product-Developers] Executing Javascript with prepOverlay has loaded overlay
Kevin Gill
kevin at movieextras.ie
Tue Feb 8 18:04:58 UTC 2011
On 08/02/11 17:35, Carsten Senger wrote:
> --On Dienstag, Februar 08, 2011 16:37:37 +0000 Kevin Gill
> <kevin at movieextras.ie> wrote:
>
>> I have a form that I want to load as an overlay using
>> plone.app.jquerytools and prepOverlay.
>
>> pass a function as
>>
>> Unfortunately, the document.ready() Javascript is not triggered when the
>> overlay is loaded.
>>
>> What is the best approach to dealing with this?
>
>
> jquerytools overlay accepts an options object where you can add a
> callback
> function for onBeforeLoad. A plain example is here:
> <http://flowplayer.org/tools/demos/overlay/external.html>
>
> If I read prepOverlay() in overlayhelpers.js correctly it will work the
> same way.
Thanks for the pointer - I looked through the overlayhelpers.js and
found that I could set an onLoad function as follows...
jq('a.resume-editor').prepOverlay({
subtype: 'ajax',
...
config: {onLoad: function() {initialiseUploadify();}}
});
>
> ..Carsten
More information about the Product-Developers
mailing list