Simon Ince's Blog

Ramblings of a gadget freak

Browse by Tags

Tagged Content List
  • Blog Post: Immersive MVC and jQuery: Project Silk

    Patterns and Practices have just released their latest round of guidance for developing web applications - “Project Silk”. I’ve been watching what they generate closely and I think you’ll be impressed. To quote the landing page; “Project Silk provides guidance for building maintainable cross-browser...
  • Blog Post: Adding Client-Side Script to an MVC Conditional Validator

    Update: If you like this, you'll like Mvc.ValidationTookit even more - check out this post ! In a previous post I covered how to write a conditional validator to work with ASP.NET MVC, and a little gotcha to avoid. However, I didn’t include any details on how to wire up this validator with some...
  • Blog Post: jQuery.validate and Html.ValidationSummary playing nice together

    A customer recently asked me how to get MVC with the MVC Futures project’s MicrosoftMvcJQueryValidation.js adapter file to play nicely with the Validation Summary HTML helper. It turns out that this functionality isn’t built into the adapter script file. They also pointed me at this post...
  • Blog Post: JavaScript Coding Standards

    About six months ago a few customers asked me about coding standards when writing custom JavaScript using Microsoft’s frameworks… it turned out that we didn’t really have any publicly available standards. To address this myself and Stuart Leeks set about coordinating and writing some standards to...
  • Blog Post: Client Script Patterns: Predictive Fetch

    Why do you write JavaScript? It's probably for one of two major reasons – Responsiveness or Richness. Richness we know about – it's the flying, sliding, flashing, and sometimes annoying UI features we see J But Responsiveness is much less tangible – it's about how an application feels to use. Does...
  • Blog Post: jQuery + MVC = Progressive Enhancement

    If you write a lot of JavaScript, you really should consider adopting Progressive Enhancement as the standard way that you work. This is basically whereby you write a web site without script, and then enhance it with script. The result is a site that does not rely on JavaScript (and hence works with...
  • Blog Post: JavaScript Prototypes versus Closures

    Recently I've been coordinating and authoring some JavaScript best practice documentation, and one area that came up which I thought was interesting was the reason for using prototypes instead of constructors to define JavaScript class members. Thanks to Bertrand , Dave , and Stephen for assistance with...
  • Blog Post: Important news for ASP.NET MVC, Ajax and jQuery

    It's been a busy period for announcements, so if you've not heard check these two out; 1. ASP.NET MVC 2 was released late last week! See Scott's post. 2. We've announced that we're investing heavily in (by contributing to) jQuery as the JavaScript platform of choice for MVC development, and that...
  • Blog Post: Handling errors with jQuery.load

    I've just posted a very simple walkthrough of the different ways to handle errors when you're using jQuery's ".load" function to do partial rendering... it's on our team blog so check it out here; http://blogs.msdn.com/ukadc/archive/2010/02/12/handling-errors-with-jquery-load.aspx
  • Blog Post: Closure Exposure: A JavaScript Scope Trick

    You might have seen some JavaScript is wrapped up in funny looking functions, such as this screen shot, and wondered why – even parts of the Microsoft Ajax Framework previews use such an approach. At first it can seem very strange, but don't worry – it's actually very simple, and equally useful. ...
  • Blog Post: A JavaScript Event Bus

    I was working on a Proof of Concept recently that needed to support loosely coupled Ajax components. The idea is a common one – components need to be able to hook into an existing page without detailed knowledge of how the page works, and immediately start responding appropriately. This is basically...
  • Blog Post: The Microsoft Ajax Content Delivery Network (CDN)

    I keep looking for the URL’s to get Microsoft Ajax, jQuery, the MVC Ajax libraries and more from our new shiny CDN (check here if you’ve not heard of it)... and I can never remember where they are. So this post is for my benefit, not yours J The links to all scripts are at http://www.asp.net/ajax...
  • Blog Post: Loading Scripts Late

    On the ASP.NET ScriptManager control there is a useful little property that very few people have heard of called “LoadScriptsBeforeUI”. What does it do? Well, simply put... · When “true” (the default) it will render <script> tags for each script you reference using the ScriptManager at the...
  • Blog Post: Executing JavaScript after a Partial Render

    I had a fun day debugging some ASP.NET plus jQuery this week, and came across something I’ve known is possible for some time, but that I’ve never actually needed to do... and that was to ensure a bit of JavaScript ran once an UpdatePanel had refreshed as part of a partial render. It turns out that...
  • Blog Post: Do you need web client development help?

    Then tell us what you need! Blaine has blogged a link to a survey that patterns & practices will use to help them understand what challenges that are affecting you the most... so that they can choose the right areas to focus effort in providing guidance. If you’ve got a couple of minutes spare...
  • Blog Post: Enforcing Unobtrusive JavaScript

    Unobtrusive JavaScript is a concept that’s been around for quite a while, but it’s now finally starting to make its way into the mainstream. The basic idea is that you should separate your JavaScript from your HTML – so instead of; < a href ="Default.aspx" onclick ="alert('Sorry, that is unavailable...
  • Blog Post: Using Anchor Links with AJAX History

    A customer asked me about doing this the other day, and I’d never come across it, although it seems obvious now! If I have a page that makes use of ASP.NET’s server-side ScriptManager AJAX history features but also want to link to an anchor on that page, I get problems. For example, if I have a page...
  • Blog Post: AJAX Script Patterns: Service Agent

    I’ve been thinking for a while about how people tend to build AJAX applications, as there seems to be something a lot of people have forgotten. This post examines how applying a pattern you probably know very well to AJAX could help – and leaves it to you to decide whether this is useful. Let me know...
  • Blog Post: Virtual Earth meets MVC

    Something I do quite a bit with customers is to help them understand and use Virtual Earth... plus I’ve been doing some overviews of the beta of the ASP.NET MVC Framework, so it seemed a great combination. How would you best combine them? Note : This post is based on the October 2008 Beta of the ASP...
  • Blog Post: Multiple Views with MVC

    In my previous two posts ( one and two ) discussing the use of AJAX within an ASP.NET MVC Framework application, I’ve tried to demonstrate some ways that the framework can be extended or modified. In keeping with this approach, I thought I’d show how it is possible to change the way that Views are resolved...
  • Blog Post: To AJAX, or not to AJAX - rendering in ASP.NET MVC

    One issue I have had on numerous customer engagements is that there has been a good opportunity to use AJAX functionality, but I need to support a significant user base that cannot use Javascript. Typically this is to meet accessibility requirements (and laws), and the users in question tend to be using...
  • Blog Post: AJAX support in the ASP.NET MVC Framework

    [ Edit : Note that this post is based on a pre-release, and now out of date CTP of the MVC framework. I'd suggest you use it to understand concepts, but look elsewhere now if you're after up to date facts. I've recently added a post about Virtual Earth and the MVC framework that includes the use of some...
Page 1 of 1 (22 items)