method 'onShowStart'

3 posts, 0 answers
  1. Bob Fly
    Bob Fly avatar
    2 posts
    Member since:
    Dec 2009

    Posted 01 Mar 2012 Link to this post

    When I try to call var app = new kendo.mobile.Application(document.body);
    I get error in chrome console and loading div is constantly showing
    Uncaught TypeError: Cannot call method 'onShowStart' of undefined
    I was check that all files was included in my javascript folder and they were included.
    I use trial version so all my files are minified. Do you have any idea what was wrong?

    This is my site code:

    <!DOCTYPE html>
    <html>
    <head>
        <title></title
        <%= stylesheet_link_tag :application, "kendo.mobile.all.min" %>
        <%= javascript_include_tag "jquery.min", "kendo.all.min", "kendo.culture.hr-HR.min" %>   
         
    </head>
    <body
           <div data-role="header">Header</div>
         <div data-role="content">Hello world!</div>
         <div data-role="footer">Footer</div>
    <script type="text/javascript">
        var app = new kendo.mobile.Application(document.body);
    </script>
    </body>
    </html>

    Sorry for my bad english.
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 01 Mar 2012 Link to this post

    Hi,

    You seem to be missing an element with data-role="view" attribute. You can check our application overview documentation section for some code snippets on how to initialize a mobile application.

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Bob Fly
    Bob Fly avatar
    2 posts
    Member since:
    Dec 2009

    Posted 02 Mar 2012 Link to this post

    Silly me... Thanks for reply.
Back to Top