Category: Html

Dynamically add options to dropdown list using jQuery

This post is going to be a fun little exercise, and is a technique that used to carry some overhead (in terms of postbacks and viewstate) back in the day. The objective is to provide users with a dropdownlist containing pre-selected options – but allow them to add their own options, and persist those options [...]

July 23 / 2011
Author bill sternberger
Category Html, jquery
Comments 1 Comment

TinyMCE samples with ASP.NET MVC

After using Telerik’s RadEditor control for years with all my asp.net web form applications, I found myself looking for a javascript alternative when I moved up to MVC. Having paid top dollar for RadEditor (which is a fine product!) and never used TinyMCE, I couldn’t imagine something free could be that good. Well it is! [...]

February 08 / 2010
Author bill sternberger
Category ASP.NET MVC, C#, Html, jquery
Comments 3 Comments

jQuery Modal Dialog without the x button

Found myself wanting to provide a modal dialog (preferably in jQuery of course!) to gate first-time page visitors. The requirements were: On page load, display modal dialog with a form to request basic contact information Disable the “esc” key to force the user to enter the info or click a “no thanks” button Hide the [...]

February 04 / 2010

Use jQuery to change a form’s action url

This is another quick and dirty post, more for future reference when I need to access this snippet again! The scenario is if you have one form on a page, but want to change the target on the fly for whatever reason. Here are the two magical lines:

January 28 / 2010
Author bill sternberger
Category ASP.NET MVC, Html, jquery
Comments 6 Comments

Microsoft and Google jQuery CDN Link

So what is a Content Delivery Network (CDN)? In a nutshell, a CDN is a network of computers strategically placed around the world that serve up cached content to users. The content types include images, videos, style sheets, and in this case,  script libraries. As you can imagine, your pages will load faster when browsers [...]

January 18 / 2010
Author bill sternberger
Category Html, jquery
Comments 2 Comments