hottowel

Chrome//kendoUI/jQuery: Maximum call stack size exceeded

时光怂恿深爱的人放手 提交于 2019-12-05 15:53:15
I am working hottowell template to create spa application and I am getting a nice error from jquery. Basically my problem start at the moment to try bind my view from viewModelBinder.js (from durandal library). viewModelBinder.beforeBind(obj, view); action(); viewModelBinder.afterBind(obj, view); at the moment to call beforeBind this code is executed (main.js of my own app) kendo.ns = "kendo-"; viewModelBinder.beforeBind = function (obj, view) { kendo.bind(view, obj.viewModel || obj); }; where kendo.bind is something like (kendo.web.js from kendo ui library): function bind(dom, object) { var

KO Grid Display Isseues, On resize Gird shows one row. Images also included

僤鯓⒐⒋嵵緔 提交于 2019-12-05 15:39:49
Using the following. 1) Visual Studio 2012. 2) Hot towel template. 3) downloaded ko grid and and its css. home.html <section id="alerts-view" class="view"> <header> <a class="btn btn-info btn-force-refresh pull-right" data-bind="click: refresh" href="#"><i class="icon-refresh"></i> Refresh</a> <h3 class="page-title" data-bind="text: title"></h3> <div class="article-counter"> <address data-bind="text: alerts().length"></address> <address>found</address> </div> </header> <div data-bind="koGrid: gridOptions"></div> </section> home.js define(['services/datacontext', 'durandal/plugins/router'],

Ui-Router 404 when redirecting with ADAL

假装没事ソ 提交于 2019-12-05 08:45:35
I'm currently trying to hook in the Azure Directory Authentication Library (ADAL.JS) into UI-Router. I've got it wired in, and it redirects correctly, but it always chucks a 404 before the redirect. The redirect works, and then gets sent back to my application, which is showing the 404. I've modified the state like so: { state: 'admin', config: { url: '/admin', templateUrl: 'app/admin/admin.html', controller: 'AdminController', controllerAs: 'vm', title: 'Admin', settings: { nav: 2, content: '<i class="fa fa-lock"></i> Admin' }, requireADLogin: true } I've got it working with the normal

Integrate the koGrid with the Durandal/HotTowel template

时光总嘲笑我的痴心妄想 提交于 2019-12-04 09:25:27
问题 I work on an asp.net solution with the Durandal template. I try to use the koGrid (https://github.com/Knockout-Contrib/KoGrid) which is compatible with knockout. When inserting this grid in a test page managed by Durandal, it doesn't work: the grid seems to be there but not correctly displayed. We noticed that if we resize the window, then the grid adjust correctly. Does anyone already succeed integrate this koGrid in a Durandal/HotTowel template? Steps to reproduce the problem: Create a new

Durandal and ASP.NET MVC conventions

北战南征 提交于 2019-12-03 06:13:31
I'm currently evaluating Durandal for use in an enterprise ASP.NET MVC application. However the default conventions used by Durandal seem to conflict with the MVC conventions I've grown accustomed to. The HotTowel MVC template by John Papa is great, but this too seems to "do away" with MVC conventions in favour of Durandals by putting things in an App folder. A couple of the issues I have with these conventions are: Views are potentially split across two locations (/App/views and /Views). Scripts are also split across two locations (/App/durandal and /Scripts). Views are not in the default MVC

Translating views with HotTowel (Durandal framework) + VS2012

我怕爱的太早我们不能终老 提交于 2019-12-03 03:44:11
I develop an ASP.NET MVC solution with Durandal and Breeze. I need to translate frontend to french and dutch. How to proceed with Durandal/knockout? In a classic ASP.NET MVC solution we have the opportunity to have the views rendered server side (thanks to razor). Thanks for your help. To expand on Rob's answer of trying the i18n.js plugin for require.js, here's the steps I followed (I'm working off the Durandal starter template in Visual Studio). Download the i18n.js plugin and put it in the App folder. Create an App/nls folder, which is where you will put the require.js resource bundles, e.g

Integrate the koGrid with the Durandal/HotTowel template

安稳与你 提交于 2019-12-03 02:59:01
I work on an asp.net solution with the Durandal template. I try to use the koGrid ( https://github.com/Knockout-Contrib/KoGrid ) which is compatible with knockout. When inserting this grid in a test page managed by Durandal, it doesn't work: the grid seems to be there but not correctly displayed. We noticed that if we resize the window, then the grid adjust correctly. Does anyone already succeed integrate this koGrid in a Durandal/HotTowel template? Steps to reproduce the problem: Create a new ASP.NET MVC project and choose the Durandal template Add the koGrid in the project (available in

ValidateAntiForgeryToken with SPA architecture

∥☆過路亽.° 提交于 2019-11-30 10:52:06
问题 I am trying to set Register and Login for Hot Towel SPA applicantion. I have created SimpleMembershipFilters and ValidateHttpAntiForgeryTokenAttribute based on the asp.net single page application template. How do you get the @Html.AntiForgeryToken() code to work in the Durandal SPA pattern. Currently I have a register.html <section> <h2 data-bind="text: title"></h2> <label>Firstname:</label><input data-bind="value: firstName" type="text" /> <label>Lastname:</label><input data-bind="value:

ValidateAntiForgeryToken with SPA architecture

烈酒焚心 提交于 2019-11-29 22:40:41
I am trying to set Register and Login for Hot Towel SPA applicantion. I have created SimpleMembershipFilters and ValidateHttpAntiForgeryTokenAttribute based on the asp.net single page application template . How do you get the @Html.AntiForgeryToken() code to work in the Durandal SPA pattern. Currently I have a register.html <section> <h2 data-bind="text: title"></h2> <label>Firstname:</label><input data-bind="value: firstName" type="text" /> <label>Lastname:</label><input data-bind="value: lastName" type="text" /> <label>Email:</label><input data-bind="value: emailAddress" type="text" />

Durandal 2.0 - Child routers intended for nested menus?

冷暖自知 提交于 2019-11-29 09:27:31
问题 I've building an app, and wanting to show a 2-tier menu, with both tiers always available. Durandal 2.0 introduced their new router, which supports 'child routers', which allow for easier deeplinking. My question - Can I have my 'child' navigation routes permanently loaded (and a sub menu rendered when the parent is not active), or is the 'child router' design intended to lazy-load them to evaluate them once a deeplink is to be evaluated? The Durandal examples show main navigation register a