Thanks for your replies, I finally got this to work.

No problem as such with infinite loops, but what I didn't realise is that the onselect event fired for _all_ tab elements, regardless of whether they've just been selected (my onselect handler is defined in a class that extends tabelement).

Adding a "if (this.select)" inside the class' onselect handler seems to solve the problem..


Thanks,
Mario.


On 7/8/06, Robin Sheat <[EMAIL PROTECTED]> wrote:
On Saturday 08 July 2006 05:43, Mario Menti wrote:
> I tried various things, but the only event I can see that handles a
> tabelement being selected is "onselect", which is going to cause an
> infinite loop if I select tabelements inside their own onselect handler.
I think it's safe to have circular constraints, AIUI Laszlo won't fire an
event if that event is already currently executing. This quite possibly means
that the same thing happens if you do it explicitly. I haven't had cause to
try this however.

--
Robin <[EMAIL PROTECTED]> JabberID: <[EMAIL PROTECTED]>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user




_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to