Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using spry validation

From: Dynamic Dreamweaver Websites: Creating and Validating Forms

Video: Using spry validation

We are now going to take a look at the contact us page for our scuba vacations website and I have a completed version of a spite validation form field form, so we'll go and take a look at that. The first thing we need to do in order for that to work correctly. The spry requires additional files within our site structure. Now right now we only have the spry validation text field pieces. We don't have any of the other types of form fields. And these were created and added by Dreamweaver.

Using spry validation

We are now going to take a look at the contact us page for our scuba vacations website and I have a completed version of a spite validation form field form, so we'll go and take a look at that. The first thing we need to do in order for that to work correctly. The spry requires additional files within our site structure. Now right now we only have the spry validation text field pieces. We don't have any of the other types of form fields. And these were created and added by Dreamweaver.

When we went through the Spry form fields section, so if you don't have these it's not a problem. We're going to go out to the course files for chapter seven, I did not want to have them in here because I want to show you how you need these files in order for this to work. So in order to add the spry assets folder for all of the form fields You want to go up to the chapter 7. And within the chapter 7 files, there is a Spry Assets folder. And just as a reminder of where your files are located, on our web server on the PC side, it's in the C drive > Zamp.

Inside of XAMP is an HT Docs folder. If you are on the Mac's side you go out to your Applications folder and inside Applications is a MAMP folder. Once you find the XAMP or MAMP folder, these are identical on both systems... We want to open up HT docs folder, and we're going to open up our Scuba Vac Vacations folder, and drop in that entire spry assets folder, from the chapter seven files. It doesn't matter if you use the start of complete, the Spry Assets folder is identical.

Now once you have that Spry assets folder from the chapter 7 either start or complete files, open up HT Docs. Inside of that is your Scuba Vac, or Scuba Vacation folder. We'll open that up and paste in our Spry assets. Now I do already have one folder so I'll say, yes I want to merge this, and I'm going to go ahead and copy and replace everything.

So once we have done that there should be eight files in your spry assets folder, not just two for the text field. Now that we have that copied in, all of our form fields for our Spry piece should be working. So I'll close that up, I can refresh in the files panel, and you'll see I now have all eight files. If you don't have all eight files, go back out and copy them one more time. You cannot rename any of these files and you cannot rename the folder. Now it is possible to rename it, however, you have to be very cautious.So I generally recommend you not do that.

So we'll close it up, we don't need to bother that folder anymore Other then to make sure it's on our live site, once we're completely done with this website. So let's go out and look at the Contact Us Spry Validate. And the only reason I did it this way was because I didn't want you to have to sit and watch while we added all of these form fields. So I will get rid of my Insert bar at the top. And I will also close up My Properties area, so you have a little more space to see.

Here is our Spry form. Now as I hover over these, you can see this is my name field, email, topic, radio group, and check box. I added 1 of each, so you could see how this works. If we put this into the browser. And we'll go ahead and do that. There we go. We'll take a look at it. If I click Contact Us, it looks just like the Spry Validation form we created.

So if I choose one here. Click Contact Us, it turns green when it's valid. My message is gone, and I just need to continue to work in these as a user filling them out correctly. So this is Spry Validation. Spry has added quite a bit of JavaScript. If you move out into your view source you will see here are all of those files that it needs, and down in each area it has added additional information specific to Spry.

Its also added some span text with Spry, so it is fully customizable if you understand the CSS behind it. So that is a spry validation form the downside of a spry validation form is its client side just like every other java script piece, so if somebody has access to turning off java script it is possible to get form submitted. Without full validation being attached to them.

So server-side validation is the way you can truly test for that piece. So what we're going to do is go ahead and build a final form that you can see. There are a lot of different options for working with forms. Within your website and its up to you to determine which form makes the most sense for that particular form.

Show transcript

This video is part of

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dynamic Dreamweaver Websites: Creating and Validating Forms.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.