Hi all!.
I have really strange problem. I use jQuery (1.11.2) and most recent Kendo Mobile UI.
My app is built from two .html pages. Simplified code below:
Page 01 has code:
<div data-role='content'>
<a href="Fitter/Register.html" data-role="button">Register here!</a>
</div>
Page 02 has code:
<div data-role='content'>
<p id='javascriptOnClickRemoveContentOfThisDiv'>Java<p>
</div>
as you can see, both Register button and Paragraph are at the same position on screen although on different views. Now the strange thing that happens here is that user will click on Register here! button, Kendo will switch the view to Page02 and Java text from Paragraph is being removed by javascript function (below), so it looks like Register here! fires twice firstly on Page01 (as supposed) and then on Page 02 (why? - delayed event?, also it's not happening on all Android devices - just on some):
$('javascriptOnClickRemoveContentOfThisDiv').click(function() {
this.html('');
});
I have really strange problem. I use jQuery (1.11.2) and most recent Kendo Mobile UI.
My app is built from two .html pages. Simplified code below:
Page 01 has code:
<div data-role='content'>
<a href="Fitter/Register.html" data-role="button">Register here!</a>
</div>
Page 02 has code:
<div data-role='content'>
<p id='javascriptOnClickRemoveContentOfThisDiv'>Java<p>
</div>
as you can see, both Register button and Paragraph are at the same position on screen although on different views. Now the strange thing that happens here is that user will click on Register here! button, Kendo will switch the view to Page02 and Java text from Paragraph is being removed by javascript function (below), so it looks like Register here! fires twice firstly on Page01 (as supposed) and then on Page 02 (why? - delayed event?, also it's not happening on all Android devices - just on some):
$('javascriptOnClickRemoveContentOfThisDiv').click(function() {
this.html('');
});