On 08/02/11 17:35, Carsten Senger wrote:
--On Dienstag, Februar 08, 2011 16:37:37 +0000 Kevin Gill
<[email protected]> 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
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/product-developers