Tag: jquery

Dynamically Changing the iframe src in jQuery

This little function allows you to dynamically change the content of an iframe, using jQuery and javascript. It is perfect if you have a single page where you want to preview other websites without navigating away. To pull this off, you need a textbox, a link, and an iframe: Next we add the javascript: And [...]

January 09 / 2010
Author bill sternberger
Category Html, jquery
Comments 1 Comment

Javascript, jQuery Rich text editor

I did a post earlier today (yes, I’m on a roll while jr. is sleeping!) on my Top 10 favorite jQuery functions and plugins. This post is dedicated to one of them: TinyMCE. In the past I’ve used editors like Telerik’s RAD Editor and obout’s Html Editor, both very powerful editors. I was turned on [...]

January 09 / 2010
Author bill sternberger
Category C#, Html, jquery
Comments No Comments

Using jQuery to enable and disable radio buttons onclick

This is by far the funnest pieces of code I’ve written in a long time. So simple, so stupid, so useful! The scenario is you want users to click a radio button from a series of options…but only after they choose a parent radio button. In this example we want the user to select only [...]

January 09 / 2010
Author bill sternberger
Category Html, jquery
Comments No Comments

Top 10 jQuery Functions and Plugins (Part I)

The following is a set of jQuery shortcuts I use at some point on a daily basis. 10. appendTo() While there are many ways to use appendTo(), I find myself taking advantage of it when dealing with dual listboxes. With that one little command, I can move listitems from one listbox to another with no [...]

January 09 / 2010
Author bill sternberger
Category Html, jquery
Comments 1 Comment

Autocomplete using Html, JSON, MVC, jQuery

I found an awesome AutoComplete tutorial (here: http://www.nodstrum.com/2007/09/19/autocompleter/#comment) using PHP, jQuery, MySQL, and decided to port it over to Microsoft’s ASP.NET MVC. Turned out to be way easier than I thought! You can download the auto-complete code sample here. Configure MVC Controller So this is basic: create a JsonResult method in your controller that runs [...]

January 04 / 2010
Author bill sternberger
Category ASP.NET MVC, C#, jquery
Comments 6 Comments