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

Backbone.js + KendoUI Mobile: HowTo Disable the router?

0 Answers 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gerrit
Top achievements
Rank 1
Gerrit asked on 05 Aug 2012, 02:56 PM
Dear KendoUI Community,

I'am working on a WebApplication, based upon Backbone.js, Rails3 as JSON API and want now include KendoUI.

If I visit the Show-View for a selected Object (www.dogspots.de/#spots/1), my browser performs 2 JSON-Requests to the Server and I have an JS-Error: http://i48.tinypic.com/akbacn.png (Uncaught TypeError: Cannot call method 'getAttribute' of undefined)
When I disable KendoUI again, everything is fine: http://i45.tinypic.com/30t74o0.png (no JS error and 1 JSON-Request)

I believe that Backbone an KendoUI performs both an request to the server, unfortunately is KendoUI not able to parse my JSON response, which results into a JS-Error and a blank Layout

My Solution would be to disable de router-module of KendoUI and keep the work on Backbone.js. Do you agree with me?
I also tried to include your kendo.backbone.js example on github, but it doesn't changed anything.

You can also see a preview with this error on www.dogspots.de

Best regards
Gerrit

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Gerrit
Top achievements
Rank 1
Share this question
or