[Kss-devel] Loading HTML code outside the normal flow
Mikko Ohtamaa
mikko at redinnovation.com
Mon Sep 15 18:56:19 CEST 2008
On Mon, Sep 15, 2008 at 1:29 PM, Hedley Roos <hedley at upfrontsystems.co.za>wrote:
> I should clarify.
>
> I do not know if there is an action which I can call server side to fire
> a load event for forms. Maybe there is one - Balazs will know.
>
> The javascript code I supplied must be made available in a kss action
> plugin. You call that plugin server side after you've done replaceHTML
> to load the form into the DOM.
Thank you very much Hedley!
I am not quite following you here. I am mostly looking client side pure
Javascript solution... is there a specific reason why things must be done on
the server side?
----------------------------------------------
>jq('form').each(function(i,o){
> var binderinfo =
>kukit.engine.binderInfoRegistry.getSingletonBinderInfoByName(null, 'load');
> binderinfo.getBinder().continueEvent('load', o);
> });
Workaround for tabbing
----------------------
>jq('form').each(ploneFormTabbing.initializeForm);
Also, do calling ploneFormTabbing or binding load event twice for DOM node
cause any problems?
Cheers,
Mikko
>
>
> H
>
> Hedley Roos wrote:
> > I've been struggling with this as well, but I do have a workaround. Here
> > is an example to fix the schemata tabs on dynamic form loading.
> >
> > The presumably correct way which does not work
> > ----------------------------------------------
> > jq('form').each(function(i,o){
> > var binderinfo =
> > kukit.engine.binderInfoRegistry.getSingletonBinderInfoByName(null,
> 'load');
> > binderinfo.getBinder().continueEvent('load', o);
> > });
> >
> > Workaround for tabbing
> > ----------------------
> > jq('form').each(ploneFormTabbing.initializeForm);
> >
> > The jquery selectors will probably be different for you.
> >
> > Hedley
> >
> >
> _______________________________________________
> Kss-devel mailing list
> Kss-devel at codespeak.net
> http://codespeak.net/mailman/listinfo/kss-devel
>
--
Mikko Ohtamaa
Managing director, Red Innovation Ltd.
+358 40 743 9707
www.redinnovation.com
Every problem is solvable if you can throw enough energy drinks at it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/kss-devel/attachments/20080915/604cca27/attachment.htm
More information about the Kss-devel
mailing list