Re: Issues with AjaxFormloop and addRowLink

2009-10-01 Thread cordenier christophe
Why not also use your condition 't:if' in the body of the AjaxFormLoop... 2009/10/1 cordenier christophe > Actually, i had a closer look to AjaxFormLoop. Here the Javascript that > launches trigger the start for add row event : > > ajaxFormLoop : function(spec) > { > var rowInjec

Re: Issues with AjaxFormloop and addRowLink

2009-10-01 Thread cordenier christophe
Actually, i had a closer look to AjaxFormLoop. Here the Javascript that launches trigger the start for add row event : ajaxFormLoop : function(spec) { var rowInjector = $(spec.rowInjector); $(spec.addRowTriggers).each(function(triggerId) { $(triggerId).

Re: Issues with AjaxFormloop and addRowLink

2009-10-01 Thread Stefan
Here's what i've tried, but it won't work as expected. It works only after a page reload or a reload of the whole formloop. Define your own AddRowLink that checks a condition before launching the AddRow Event... How can i check conditions *before* triggering the event?

Re: Issues with AjaxFormloop and addRowLink

2009-10-01 Thread cordenier christophe
Hi Maybe you can achieve this by setting the addRow parameter on the AjaxFormLoop. Define your own AddRowLink that checks a condition before launching the AddRow Event... 2009/10/1 Stefan > Hi, > > is it possible to block adding further rows to an AjaxFormloop? > Inside my addRow method i check

Issues with AjaxFormloop and addRowLink

2009-10-01 Thread Stefan
Hi, is it possible to block adding further rows to an AjaxFormloop? Inside my addRow method i check some things and in some cases I don't want to add further rows. In these cases i return a FALSE (tried NULL also), but the last row will be appended twice (or more times). What's going wrong