This is a migrated thread and some comments may be shown as answers.
Open ChildBrowser from div in ListView item
3 Answers 15 Views
This is a migrated thread and some comments may be shown as answers.
J.
Top achievements
Rank 1
J. asked on 01 Jul 2013, 09:26 PM
I've got the child browser wired up to the data-click event on a list view, but when I click on an item that has a div (with a background image) in the list item, it doesn't work. Clicking outside the image does work.

<style>
 .imageClass {
    background-image: url(some/image.jpg);
}
</style>

<ul data-role="list-view" data-click="onClick">
 <li><a href="#" data-linkUrl="someUrl"><div class="imageClass"></div>Clicking Text Works</a></lI>
</ul>

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 03 Jul 2013, 01:35 PM
Hi,

First thing to note is that Cordova plug-ins do not work in the Icenium simulator, so if that is your case, simply test on a real device.
Second, if you're using Kendo UI Mobile, make sure it is the latest version shipped with our Kendo UI template. The easiest way to upgrade it would be to use Graphite and create a new Kendo UI Mobile project from the template, then copy the kendo folder, go back to the DashBoard, open your project and paste the kendo folder in your project.

On a side note, Cordova now (since v.2.3) offers a built-in API that supersedes the ChildBrowser plugin, which is no longer under active development. I'd suggest checking out the InAppBrowser API and see whether it works for you.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
Falafel Support
Top achievements
Rank 1
answered on 03 Jul 2013, 02:58 PM
Steve,

Thanks for the information about the InAppBrowser, but the issue isn't directly related to the ChildBrowser plugin, but with the Kendo UI Mobile ListView widget.  

Based on your recommendation, I tried upgrading to version 2013.1.619 of Kendo Mobile, but it breaks my project due to this documented bug with RequireJS support: http://www.icenium.com/resources/forums/report-a-bug-/require-js-fails-with-new-kendomobile

1) Can I get some advice specifically on the sample code I posted and how to fire the ListView's click event on a div with a background image inside a list item?

2) Can I get either v2013.1.319 or the latest internal build of Kendo Mobile that fixes the RequireJS support?
 
Thanks, J.
0
Steve
Telerik team
answered on 03 Jul 2013, 03:11 PM
Hi J,

The Kendo UI update should resolve the click issues. We're currently in the process of releasing a new version of Icenium that contains several hotfixes including a hotfix to Kendo UI Mobile that addresses the requirejs problem. It should be up shortly, so stay tuned.
If the problem continues, can you post a jsfiddle demo that shows the problem?

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
Asked by
J.
Top achievements
Rank 1
Answers by
Steve
Telerik team
Falafel Support
Top achievements
Rank 1
Share this question
or