Halhelms
SIGN UP FOR MY NEWSLETTER

www.savorgold.com is top on wow gold and runescape gold and World of Warcraft gold provider list for trusted services. Their reputation seems to growing by the minute, which isn't surprising because they are one of the safest sellers of Gold. Delivery speed and customer service are very good. They aslo are giving some bonus items depending on the amount of gold you purchase.

 
 
Halhelms

Recent Comments

Recent Entries

RSS

Form Processing : the OO Way -- the Movie!

Yesterday, I posted a blog entry on doing form processing using OO to help us. There was a lot of code and some new concepts, so I thought having a couple of brief videos might be of help.

Do you like the idea of video (hopefully, I'll get better over time!) or do you find it annoying to watch a video about programming?

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Ryan Miller's Gravatar A picture is worth 1000 words, a video is worth 10,000?

I think there is more value in a video. The only downside I see is that the audience is forced to go at the pace of the presenter. Some people, I'm sure would prefer to skip to just the transcript of the video.

Either way, you continue to provide great information! Thanks.
# Posted By Ryan Miller | 4/8/09 10:01 AM
Ben Nadel's Gravatar I really like that you walked through code in the video. In the past, my videos have only included GUI walk throughs, but I found the code walk through to be extremely helpful. I am most inspired.
# Posted By Ben Nadel | 4/8/09 10:11 AM
C.Gratz's Gravatar I loved the video. It helps to have the code walk through so that people
can understand the logic behind the code better as you explain it when you
walk through it. Thanks for the hard work.
# Posted By C.Gratz | 4/8/09 12:02 PM
Gabriel's Gravatar 1. Video + yesterday's post were fantastic. Thank you.

2. In the second video, you mentioned how using a generic validator.cfc allows us to do server side validation such as "unique username". I'm trying to glue the concepts together in mind and I'm wondering what that rule would look like?

a. Would the validator.cfc have enough connections to other objects to perform the validation within validator.cfc? As in the actual "username unique" validation occurs in validator.cfc?

b. OR would the rule in validator.cfc simply be making a method call to another object that does the actual validation? In other words, the validator.cfc makes the call and returns the result but the actual work is done by the other object.

c. OR something else entirely.

Thank you.
# Posted By Gabriel | 4/8/09 12:21 PM
Akbar's Gravatar The Code walk through is great but i think the audio is bit low. If you provide the source code as download would be really helpful. Looking forward for more video type programming walk through :-)
# Posted By Akbar | 4/8/09 12:24 PM
Steve's Gravatar I really liked the video tutorial. I read the code that you posted yesterday, and I had some trouble understanding some of it. You answered all my questions with the video. Thank you for posting this.
# Posted By Steve | 4/8/09 1:35 PM
Henry Ho's Gravatar Where do those "CFML Basic|CF Flow|CFC|CFDocument|CFML Advanced" tabs come from? Are you using Bolt!? O_O
# Posted By Henry Ho | 4/8/09 4:13 PM
Hal's Gravatar @all,

Thanks for the kind words and encouragement. As for the low volume, I can amp that up.

@Gabriel,
I have a generic Validator.cfc that handles generic validation : isRequired, minLength, etc. But that Validator can be extended by other, custom validators that can handle things like "this user name has to be unique", etc.

@Akbar,
Certainly, I'll make the code available. Good idea!

@Henry,
No, that's just my CFElipse stuff.
# Posted By Hal | 4/8/09 5:53 PM
Chris Phillips's Gravatar Hal,

I know it's just example code. But, I wanted to point out that in MyForm.pgm on line 12 the loop iterator variable should be 'var'ed (ie "for(var i=0"). Other wise i is in the window scope and can conflict with other loops.

Other than that, this seems like a very cool way of doing form validation.

Also, I bet you could make it so that if the user has JS turned off that you submit the form, use validator.cfc to give you a CF array and then render the validation messages back into the form...
# Posted By Chris Phillips | 4/8/09 10:40 PM
Hal's Gravatar Good point, Chris. Thanks.
# Posted By Hal | 4/8/09 10:49 PM
 
   
Clicky Web Analytics