Date post: | 20-Aug-2015 |
Category: |
Technology |
Upload: | engage-software |
View: | 1,390 times |
Download: | 0 times |
Who Are You
Chief Software Architect
Engage
St. Louis, MO
Working with DNN since 2008
Using Knockout on personal and professional projects since early 2011
Knockout is JavaScript
JavaScript: The Good Parts– by Douglas Crockford
JavaScript Enlightenment– by Cody Lindley– http://javascriptenlightenment.com/
Cleanliness
“I don’t think Knockout is used (primarily) by devs that care much about keeping their javascript clean.”
– Rob Conery
Scenario
{ formId: 1,
title: 'Contact Form',
questions: [{
title: 'Name',
type: 'text'
}, {
title: 'Reason',
type: 'dropdown',
answers: ['Sales', 'Support']
}, {
title: 'Message',
type: 'textarea' }]
}
Client Resource Management
DNN 6.2
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnJsInclude runat="server" FilePath="knockout.js" PathNameAlias="SharedScripts" />
How Do I Tell the Server About Updates? DNN Services Framework
Serialize view model to hidden field
Just manage existing ASP.NET control