This is a migrated thread and some comments may be shown as answers.

Event getting fired after 5 to 6 clicks (Responsiveness very slow) for input tag

2 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Akshay
Top achievements
Rank 1
Akshay asked on 17 Jan 2013, 11:03 AM
Implemented camera feature using HTML5 input tag.
code :
--------
<div data-role="view" id="tabstrip-camera" data-title="camera" data-layout="mobile-tabstrip" id="Camera">
<!--Camera Code-->
<input data-click="alert('clciked');" type="file" name="image" accept="image/*" capture>
</div>

When tried on iOS 6 safari browser and Android chrome browser the camera is getting opened after 5 to 6 clicks.
File is attached for reference. The responsiveness of the button is very bad.
Please let me know if any js or css file to be added or modified.

2 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 18 Jan 2013, 04:54 PM
Hi Akshay,

Which KendoUI Mobile version are you using? The Service Pack release contains a fix related to the DOM click event. I tested your page with it and got everything to work as expected. Please download the latest release (v2012.3.1315) and give it a try.

On a side note there is a syntax mistake in your code. data-click attribute accepts a name of JavaScript function (string). Also the click event is available for elements with data-role="button" it will not work with standard html inputs.

I hope this will help.

Kind regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sathish
Top achievements
Rank 1
answered on 21 Jan 2013, 06:51 AM
Thanks Alexander for the inputs.
It worked.
Tags
General Discussions
Asked by
Akshay
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Sathish
Top achievements
Rank 1
Share this question
or