0

OnClick not being called on Ipad for Vbox

asked 2012-10-01 14:34:37 +0800

ansancle gravatar image ansancle
317 9

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");
	}

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-10-03 01:44:35 +0800

ashishd gravatar image ashishd flag of Taiwan
1972 6

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">

link publish delete flag offensive edit

answered 2012-10-03 11:39:51 +0800

ansancle gravatar image ansancle
317 9

Works great, thanks!!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-10-01 14:34:37 +0800

Seen: 86 times

Last updated: Oct 03 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More