11. August 2010 12:32
The jQueryUI Selectable by default will select multiple items, either by the lasso or by holding the control button. There is not an option to set the interface for a single item. So what I have done is on the stop selecting event use a function that will only select the first item of the selected and set the remainder to un-selected. Continue reading to see the code and a downloadable sample page. More...
29. March 2010 08:08
Someone once told me that if you think your code is clever then you probably did it wrong or there was a simpler way. I will find out I guess but I was looking for a simple way to verify a date in a field that used jQueryUI datepicker. I found a lot of scripts out there that did just that but I found this simpler, I have only tested it on IE7 and FireFox and all the users of this web page will be using those.
The script basically just takes the value and does a Date.parse on it and then with jQueryUI datepicker I request the date. I turns out if the date is not valid it will return the current date. I made a function out of it so that I could call it again and again.Read More....
29. March 2010 07:21
I have never spent a lot of time with JavaScript and recently I was introduced to jQuery; now I am trying to include it in more of my development in hopes I get better at it. I would like to say thank you to Kevin Griffin for the introduction he gave at the Roanoke Code Camp 2010, he did a great job on grabbing my interest and convinced me to use jQuery more often.