Open ChildBrowser from div in ListView item

4 posts, 0 answers
  1. J.
    J. avatar
    22 posts
    Member since:
    Jan 2013

    Posted 01 Jul 2013 Link to this post

    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>
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Jul 2013 Link to this post

    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.
  3. Kendo UI is VS 2017 Ready
  4. Falafel Support
    Falafel Support avatar
    24 posts
    Member since:
    Sep 2009

    Posted 03 Jul 2013 Link to this post

    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.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 03 Jul 2013 Link to this post

    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.
Back to Top
Kendo UI is VS 2017 Ready