BizzyBee’s BizzyThoughts

Think Outside The Hive - About Notes and Web
 
 

Input validation for the web made easy with Adobe’s Spry javascript framework for Ajax - part 2


In the first part of this article I talked about why you should consider the Spry framework as a valid alternative for input validation in the browser. Now I’ll demonstrate how it works in Dreamweaver and in the next article, how to transfer the validation to Domino Designer (I decided to split up the article in different parts for the Dreamweaver side and for the Domino Designer side).

Adding the input validation to a form in Dreamweaver CS3

Spry demo

I invite you to start the beetorial to the left. In less than 5 minutes it shows you how to add input validation to a form in Dreamweaver CS3 (although it took more than 5 hours to build it :-)). I recommend running it in full screen (press <F11> in most browsers).

It’s not only intended for Notes developers, but is also useful for anybody that wants to learn about input validation in Dreamweaver CS3.

In the beemo I start with a form I already prepared (it’s loosely based on a form I found in The Art & Science Of CSS, a very inspiring Sitepoint book about practical and visually stunning CSS techniques.

I add validation to fields for name, email, date and checkboxes and I show how it looks like in the browser.

Bare in mind that the validation messages look a bit boring at the moment, but in a future part I will demonstrate how easy it is to create validation eyecandy.


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

6 Responses to “Input validation for the web made easy with Adobe’s Spry javascript framework for Ajax - part 2”

  1. Gravatar Basir Noutash says:

    Hi Matin, I get the “Forbidden” message when I click the demo. It says I don’t have permission to view it.
    Btw, I like your splitting into sections, I never find the will in myself to read long articles.

  2. Gravatar Keith Strickland says:

    Me too…

  3. Gravatar Martin Vereecken says:

    Thank you for warning me, guys. Sorry, I didn’t check the link after uploading the files. The permissions were wrong… It’s fixed now!

  4. Gravatar Tony Palmer says:

    I Liked the post, especially the movie format. I’m Looking forward to the next one.

  5. Gravatar Karel says:

    Nice one, didn’t know you could easily integrate these frameworks into dreamweaver cool. Greetings!

  6. Gravatar Basir Noutash says:

    Hey Martin, I’ve been trying to implement this in my Notes form. It works fine however it only triggers when “onSubmit” is triggered by a genuine submit type input tag. How do I make it to trigger when the form is saved with FileSave @command?

Leave a Reply