jQuery

Customise Subtext Core Pages – Part 1

13 September 2011 |

I have about 23 posts sitting in drafts in relation to my subtext skin bonanza. It takes a while to go through each skin, test it, write it up and package it up so please bare with me. I do plan on catching up soon. I wanted to take time out from subtext themes for a moment and go over a topic that I think will be of some use to such webmasters that use subtext on a multi-blog platform. Customising Subtext core pages. What pages am I talking about here? In this part I am going to cover pages that are visible...

Using jQuery/css to make your radio button lists look good

12 December 2010 |

This post was influenced by some prototypes I have been building over the last couple of weeks. Radio button lists used correctly are a fantastic way to get information from your users. Boring Radio Button List One problem with radio button lists is that no matter how you present them either in a list format going up and down or horizontal they look boring. Good looking Radio Button List I was thinking of a way to make the above a little bit more exciting and make it more interesting to the end user.  I decided to make it more graphic this is where...

How to call JavaScript functions based on the querystring

26 April 2009 |

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...

jQuery – Revisit - Fun with Radio Button lists, checkboxes and labels

19 April 2009 |

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...

jQuery – Fun with Radio Button lists, checkboxes and labels

13 April 2009 |

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...

Javascript unit testing frameworks

09 February 2009 |

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 -...

jQuery - making it easy - basic manipulation - Part 1

29 October 2008 |

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...

Adding a Javascript onclick event to a Radio Button List Item on DataBound Pt 2

15 January 2008 |

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...

Adding a Javascript onclick event to a Radio Button List Item on DataBound

08 November 2007 |

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) ...