-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, i use a piechart and i need to get the value of the selected area. I see the example in zk demo and +area.getAttribute("category") return the category in a zscript, i need the info in the controller, i need to create onClick function??
Greetings
--------
Added
in zscript i pass the value to hiden field, i searching how pass the value to controller when the value changed.
you better take a look at the zk event document :)
http://docs.zkoss.org/wiki/Event_listening_%26_processing
you already know the answer
hi, thank you =)
i use this code
<attribute name="onClick"><![CDATA[
Area area = event.getAreaComponent();
if (area != null)
alert(""+area.getAttribute("category"));
and pass the value to include file :P
Greetings
Asked: 2010-10-05 15:08:47 +0800
Seen: 177 times
Last updated: Oct 06 '10