cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simone Gianni <simo...@apache.org>
Subject Re: which submitbutton was pressed?
Date Tue, 12 Dec 2006 11:46:29 GMT
ZongoZongo wrote:
> The Problem is, that the forms are generated dynamically. So i dont now which
> buttons eaven exists. 
>   
Hi Niclas,
you can write the following :

var buttonid = form.submitId;
var widget = form.lookupWidget(buttonid);
var attribute = widget.getAttribute("myattribute");

More or less .. :) I don' t have the code by hand, but that's the idea.

Simone


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message