Viewing Category: javascript  [clear category selection]

NCDevCon and my jQuery talk - get the code

NCDevCon in Raleigh this past weekend went well. Dan Wilson, Jim Priest and many volunteers orchestrated a good conference for the second time. I think the fact that it is free to attendees testifies to what can be accomplished with a some hard work. It was really nice to see some new speakers and different topics represented also. A show of hands in a couple of sessions revealed that some participants were not ColdFusion developers, but either designers or developers with other languages.

The fact that sponsors also helped out with some basic costs speaks well of the quality of the conference. Other attendees that I talked to also felt as though it was well worth a weekend of their time to get some good training and networking. Good job and thank you to the Triangle Area CFUG.

I gave my talk on jQuery and AJAX Sunday afternoon. Although I was hoping for a bit more of a hands on type of workshop, it seemed to go well and I had some good feedback. After covering some jQuery basics, I demonstrated about six different use cases for jQuery and its built in AJAX capabilities. The source code, slides, and lesson demonstrations are all available at http://mattjanell.com/NCDevCon/. The "Get the Zip" link at the top includes the source code and slides. The slides are in Open Office format, which one person said he could open in PowerPoint.

Lesson 6 is a partially completed lesson. I told the class participants that their homework before the next NC Dev Con was to finish it out - sure they will :). All the code should be looked at as a starting point or example of how something can be done with jQuery. I owe a thanks to Ray Camden for his timely blog posts on jQuery and AJAX. I used a couple of those as starting points for my lessons.

Feel free to post any questions about the code samples.

2 Comments  |  CF General, javascript  |  Send
Posted 5/24/10 @ 10:50 AM by Matt Williams

Looking for input for NCDevCon workshop

I'll be speaking this weekend at the North Carolina Developer's Conference (NCDevCon) about using jQuery and AJAX in Forms. It will be a hands on workshop so participants can learn by doing. It is geared toward the jQuery beginner. I have a few basic examples of jQuery and AJAX already, but would actually like some ideas from other people. If anyone has something they've seen or wanted to do and wondered how to do that in jQuery, please post it here and I'll see if I can incorporate it.

Since I'm concentrating on forms, I may include a jQuery UI element or two such as the autocomplete, datepicker or tabs. Some of those are not as ajaxy as others, but may be helpful.

Thanks.

0 Comments  |  CF General, javascript  |  Send
Posted 5/19/10 @ 5:21 AM by Matt Williams

Javascript date correction

My task was to auto-correct date entry from possible entry such as this: 1/1/08 1-1-08 to this: 1/1/2008.

So I'm doing two things here, swapping dashes for slashes and fixing 2 digit years to 4 digits. First, I lifted code from a comment in this blog entry on Ben Nadel's blog. It handled both the RegEx for the dash/slash swap and the 2 digit year deal. I made some modifications to better handle text entry or an incomplete entry (e.g., 3/1). I also slightly modified the pivot function to allow entry of years like 1800 (not that I needed that, but anyway).

In the download I also included the DateFormat function from this RIA Forge project. This project is pretty sweet as it mimics CF functions in javascript.

To see it in action, click the Download Enclosure link. Or right click it to actually download the file and play with it.

0 Comments  |  0 Trackbacks  |  Download Enclosure  ( 4 KB) |  javascript  |  Send
Posted 1/18/08 @ 9:38 AM by Matt Williams