jQuery

jQuery Plugin – Fun with Query String Object I have been working on an internal application which uses ajax and modal popups so that the user/manager/administrator doesn’t need to navigate to different pages to do different actions.  While this looked the part and done everything it said on the tin I ran into a problem. When a user acknowledged an event that needs authorisation a email is sent to the appropriate manager asking for action.  This email needed to contain a link that when the manager clicked it, the appropriate section was shown. No point in re-inventing the...

posted @ 26 April 2009 07:40 | Feedback (0) | Filed Under [ JavaScript | jQuery | ]

In my previous post I outlined how easy it was to grab text from a label tag associated to a form input element. jQuery – Fun with Radio Button lists, checkboxes and labels I have quickly thrown together a demo page that shows a “tra la” aspect. All I have done here is added in a couple of styles, a new radio list for the colour selection and an express delivery option.  The green div shown above the colour radio button list has it’s background colour controlled by whatever colour the user selects. Change Background colour Add an...

posted @ 19 April 2009 21:20 | Feedback (0) | Filed Under [ jQuery | Web Development | ]

Previously I have written about how to attach an onclick client event to a radio button list on databound and adding some flare to show what the user has selected. Add a javascript onclick event to a radio button list on databound Adding a Javascript onclick event to a Radio Button List Item on DataBound Pt 2 In this post I am going to use jQuery to attach the onclick events to a radio button list and to a group of checkboxes.    Looking at the picture above. When the user selects one...

posted @ 13 April 2009 09:58 | Feedback (1) | Filed Under [ jQuery | Web Development | ]

Myself and Simone have been in discussions about creating a jQuery plugin for many months now.  With real life, time on both parts hasn’t been on our side. Simone has co-authored a MVC book entitled “Beginning ASP.NET MVC”. I’ve been busy with work, getting fit, holidays, and other projects (more details coming soon). We've both now managed to make a start on the plugin which resulted in me looking at unit testing frameworks for JavaScript. I was quite surprised to find the amount I did hence this short and sweet post. List of JavaScript testing frameworks QUnit -...

Over the last couple of weeks I have been doing alot of work on a UI for client/matter conception application at my work involving javascript and the almight framework jQuery.  I have done a couple of posts in relation to jQuery before: Subtext Galleries, using jQuery for funk Adding a Javascript onClick event to a Radio Button List Item on DataBound Adding a Javascript onClick event to a Radio Button List Item on DataBound Pt 2 Also my 1st ever patch to subtext project uses jQuery. After receiving countless emails...

A while back I wrote a quick article about adding a javascript onclick event to each individual radio button list "Adding a Javascript onclick event to a Radio Button List Item on DataBound". I was speaking to an early learner via email regarding what we would use this type of scenario for so thought I would put together something very quickly just to maybe flair some creativity. The following demo uses the JQuery library.  What I have done is simply change the onclick event from showing an alert box to populate a div, a textbox and a hyperlink with the value of...

posted @ 15 January 2008 20:13 | Feedback (0) | Filed Under [ jQuery | Web Development | ]

This is very straightforward and can add some extra functionality to your forms in the sense of if this value is selected show that div.  Within the asp.net page we add the control to the page: <asp:RadioButtonList ID="grpLocation" runat="server" RepeatDirection="Horizontal" OnDataBound="grpLocation_onDataBound"> </asp:RadioButtonList>  Within the code behind we add some listitems to the Radio button list: ListItem A = new ListItem("Edinburgh", "Edinburgh"); ListItem B = new ListItem("Glasgow", "Glasgow"); ListItem C = new ListItem("Aberdeen", "Aberdeen"); ListItem D = new ListItem("Scotland", "Scotland"); grpLocation.Items.Add(A); grpLocation.Items.Add(B); grpLocation.Items.Add(C);grpLocation.Items.Add(D); grpLocation.DataBind(); In the code behind we add the following code to the grpLocation_onDataBound event: RadioButtonList rbl = (RadioButtonList)sender; foreach (ListItem li in rbl.Items) ...

posted @ 08 November 2007 12:55 | Feedback (5) | Filed Under [ C# | jQuery | Web Development | ]
I'm test driven