Category Archives: Javascript

Master Details with Dialog in ASP.Net MVC and Unobstrusive Ajax

Today’s post explains a user interface that is not uncommon. The user interface consists of a list of items, and if the user clicks a link in the row of data for an item, a dialog window appears so the … Continue reading

Posted in .Net, Ajax, ASP.Net MVC, jQuery | Tagged , , | 3 Comments

Localization of Dates in ASP.Net MVC

Introduction It is a somewhat inconvenient truth that users of your web site are everywhere but they don’t all talk the same language or even do simple things like read dates in the same way. ASP.Net prov ides rich support … Continue reading

Posted in ASP.Net MVC, jQuery, Razor | Tagged , , , | 1 Comment

Custom Unobstrusive Jquery Validation in ASP.Net MVC 3 using DataAnnotationsModelValidatorProvider

Introduction In a previous post I covered the use of Custom Unobrusive Validation in ASP.Net MVC using the IClientValidatable. The use of this interface may not always be possible, for example if the validation attribute is defined in an assembly … Continue reading

Posted in ASP.Net MVC, jQuery | Tagged | 1 Comment

Javascript Closures

Introduction Following on from my previous article on javascript object creation and objects, arrays and associative arrays, I am now going to cover the concept of call-scope and closures in JavaScript. Understanding scopes In common with most languages, JavaScript has … Continue reading

Posted in Javascript | Tagged , | 1 Comment

Javascript Object Instantiation and Prototypes

This is part of series on javascript mechanics I’m writing – mainly for my own benefit but also to help those shy server developers out there venture into the mysterious land of the ‘client side’. In my last post I … Continue reading

Posted in Javascript | Tagged , | 5 Comments

Copying Jquery Validation from one element to another

A simple note to self about copying jquery validations on one element to another. 1. First get the validation rules pertaining to the element you want to copy from using the validation jquery extensions var rules = $(‘#elementtocopy’).rules(); 2. The … Continue reading

Posted in jQuery | Leave a comment

Using Unobtrusive Ajax Forms in ASP.Net MVC3

This post covers how to use the new unobtrusive libraries in ASP.net MVC3 to provide an improved form submission user experience utilising AJAX. The idea is to have the whole form contents submitted and then replaced by the server generated … Continue reading

Posted in Ajax, ASP.Net MVC, Javascript | Tagged , | 12 Comments