Archive: December 2009

How to use jQuery to copy form values

This is a simple little exercise to show how to copy form values from one set of fields into another. The sample will be a “check box if billing information is the same as contact information.” To set this up, first we create the form fields: Next we paste in the jquery code: That’s it!

December 29 / 2009
Author bill sternberger
Category Html, jquery
Comments No Comments
Tags

How to implement paging with c#, mvc, nHibernate, ICriterion

There is a really cool jQuery tool (http://tablesorter.com/docs/index.html) that uses PFM Technology (Pure Freakin’ Magic) to make your html table just magically page and sort. It works great with MVC and nHibernate, but I wanted to get fancy and make my own. Turned out to be surprisingly easy. Here’s what I did: Preparing the Controller [...]

December 23 / 2009
Author bill sternberger
Comments No Comments

State Dropdown List

As the title implies, this post simply has a list of US States to populate a dropdown list:

December 18 / 2009
Author bill sternberger
Category Html
Comments No Comments
Tags

Dual listboxes in jquery

Ok, so this one should be simple, more for reference. The goal is to create a dual list box using jQuery and MVC. To accomplish this, we are going to use the “appendTo” manipulation (http://docs.jquery.com/Manipulation). You can also download the dual listbox code sample here. Add two select boxes, and four buttons Add javascript handlers [...]

December 16 / 2009
Author bill sternberger
Category jquery
Comments 4 Comments

How to add or delete a row to a html table using jQuery, MVC, and JsonResult

This post covers a piece of functionality I’m always using, and just wanted a spot where I can do some quick copy/paste. There are a few pieces of functionality needed to make this happen, and the technology used, here are the assumptions about your environment: ASP.NET MVC 1.0 jquery-1.3.2.js nHibernate (optional) You can download the [...]

December 15 / 2009
Author bill sternberger
Category ASP.NET MVC, C#, jquery, json
Comments 3 Comments