hottowel

How to use Fancybox in combination with Durandal en TypeScript

与世无争的帅哥 提交于 2019-12-24 11:04:20
问题 I'm quitte busy prototyping and developing with the Hot Towel template from John Papa. Instead of using Javascript I'm using TypeScript and come a cross a problem. When the user click on a image in the SPA I want the image to pop out with fancybox. But for no way I can get this implemented. I thought I put my code for fancybox in de Activate function since thats called each time the view is loaded (I could be wrong here). But I also found out with Fiddler that de .js (the ModelView) is loaded

jQuery Mobile Autodivider Not Formatting Correctly - Using Hot Towel Views

六眼飞鱼酱① 提交于 2019-12-22 13:04:46
问题 I'm trying to get my list to look like this: But it looks like this: I've copied the code directly from the jQuery mobile site: <ul data-role="listview" data-autodividers="true" data-filter="true" data-inset="true"> <li><a href="index.html">Adam Kinkaid</a></li> <li><a href="index.html">Alex Wickerham</a></li> <li><a href="index.html">Avery Johnson</a></li> <li><a href="index.html">Bob Cabot</a></li> <li><a href="index.html">Caleb Booth</a></li> <li><a href="index.html">Christopher Adams</a><

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

戏子无情 提交于 2019-12-22 08:20:54
问题 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:

Translating views with HotTowel (Durandal framework) + VS2012

徘徊边缘 提交于 2019-12-20 14:39:57
问题 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. 回答1: 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

HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory

时光怂恿深爱的人放手 提交于 2019-12-17 18:59:08
问题 After finishing the John Papa course on Pluralsight- which is AWESOME by the way!!! ) I'm now creating my first SPA. I come from Desktop Application Developer background so excuse me if this question is newbie! When I load the SPA instead of seeing the splash screen and then the main screen I'm getting this error message: HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.Most likely causes: A default document is not configured for the

Ignore an anchor in DurandalJS app

对着背影说爱祢 提交于 2019-12-13 14:23:35
问题 I have an SPA app using DurandalJS that works great. Links are routed, view models are activated, etc. The problem is, I have an anchor that points to a page that actually lives on the server. I need the browser to actually query this page (it's an asp.net MVC page). It seems the router in Durandal hooks into all links that are relative (or on the same domain, really) and if it finds no route, calls the handleInvalidRoute method of router. I cannot for the life of me figure out how to tell

How to use Durandal's createChildRouter

假装没事ソ 提交于 2019-12-12 10:17:43
问题 I have struggled all day unable to figure out how to properly create a child router using Durandal in my hot towel-based (MVC4 SPA) project. This is what I have at the moment: shell.js var routes = [ { route: '', moduleId: 'home', title: 'Home', nav: 1 }, { route: 'inventory/index', moduleId: 'inventory/inventory', title: 'Inventory', nav: 2 }]; return router.makeRelative({ moduleId: 'viewmodels' }) // router will look here for viewmodels by convention .map(routes) // Map the routes

Breeze is not working with some project settings

邮差的信 提交于 2019-12-12 05:35:10
问题 I have a problem using breeze on a project based on John Papa's HotTowel. I configured breeze like: var mgr = new breeze.EntityManager('breeze/Breeze'); everything is ok but in the case I change the Project properties Start Action from Current Page to Specific Page: HotTowel/Index and breeze doesn't work properly. I've checked the requests using firebug. It seems in this case application sends a GET request like this: http://localhost:53180/HotTowel/Index/breeze/Breeze/Metadata instead of

Issue with Highcharts not rendering in Durandal/Hot Towel Template

一世执手 提交于 2019-12-12 05:09:58
问题 We're using HighCharts.js in a Durandal/Hot Towel template in ASP.NET MVC 4. We are simply showing a proof of concept in using a charting API for a dashboard page. However, the graph is not rendering on the page during page load. We have a custom .js file that holds the following code (copied and pasted from HighCharts.com): $(document).ready(function () { $('#reportgraph').highcharts({ chart: { type: 'bar' }, title: { text: 'Fruit Consumption' }, xAxis: { categories: ['Apples', 'Bananas',

Breeze Entity manager relative path

こ雲淡風輕ζ 提交于 2019-12-12 04:59:11
问题 A similar question is HERE but with no solution. I am able to run my project on localhost but once deployed, loading the metadata fails. Looking into chrome developper tools, the request is sent to http://www.domain.org/breeze/metadata instead of http://www.domain.org/projectname/breeze/metadata . On my localhost, the metadata loads as http://localhost:xxxx/breeze/Metadata . My entity manager is declared as new breeze.EntityManager('breeze') . If I change the entitymanager to new breeze