-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a situation where I need the onClick handler to be called against a vbox that contains several subcomponents.
onClick is called correctly when using firefox on ubuntu, chrome, firefox, or ie on windows, or safari on a mac.
But when using the Ipad, the onClick event is not called. If you click on the image or label it does get called.
<window id="_homeWindow" border="normal" apply="com.dh.ui.ipad.view.DHzHomeView" height="100%" width="100%" > <vbox id="_test" width="200px" height="200px" style="background-color:red" > <label value="TEST"/> <image sclass="dhVideoSector"></image> </vbox> <window> public class DHzHomeView extends GenericForwardComposer { .... public void onClick$_test(Event event) { Messagebox.show("test Clicked"); }
Hi ansancle,
As specified here http://books.zkoss.org/wiki/ZK_Installation_Guide/Setting_up_OS/IOS in IOS device (ipad/iphone) you have to specify the following CSS (cursor:pointer) to make it work with onClick event
<component style="cursor:pointer">
Asked: 2012-10-01 14:34:37 +0800
Seen: 86 times
Last updated: Oct 03 '12