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

method 'onShowStart'

2 Answers 76 Views
Application
This is a migrated thread and some comments may be shown as answers.
Bob Fly
Top achievements
Rank 1
Bob Fly asked on 01 Mar 2012, 03:23 PM
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 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 01 Mar 2012, 04:05 PM
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!
0
Bob Fly
Top achievements
Rank 1
answered on 02 Mar 2012, 09:08 AM
Silly me... Thanks for reply.
Tags
Application
Asked by
Bob Fly
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Bob Fly
Top achievements
Rank 1
Share this question
or