close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

OnBlur validation not functioning

Thread began 5/26/2011 1:41 pm by MBrem | Last modified 5/27/2011 6:28 am by Jason Byrnes | 2010 views | 5 replies |

MBrem

OnBlur validation not functioning

Hi,
I'm using Form Builder 2.0 with DW CS5 on Mac 10.6.7

I've installed and customized a form based upon the stock Simple Registration including validation. However, the OnBlur validation does not function. I've deleted and recreated the form plus verified that all required folders have been uploaded. Below is the header php code. (BTW, I just noticed that there is a misspelling in the _POST function - I did try correcting that but did not have success with the validation)

<?php require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("../webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once("../webassist/email/mail_php.php"); ?>
<?php require_once("../webassist/email/mailformatting_php.php"); ?>
<?php
if (!isset($_SESSION))session_start();
if ((isset($_POST["SimpleResgistration_submit"])))

No errors display. The form emails the info a-ok.

Mark

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the page in a zip archive so I can examine the code.

Sign in to reply to this post

MBrem

Hi Jason,

The .zip is attached.

Mark

Sign in to reply to this post

Jason ByrnesWebAssist

you're form elements do not follow proper naming rules.


The following rules must be followed when naming form elements:

1) Only letters and numbers are allowed, the only exception if the underscore "_"

2) The first character of the name must be a number.


your form element names contain the dash "-"

this is interpreted in javascript as the minus operator.

your form element name:
Event-Name

is interpreted by the script as
Event minus Name


which throws a javascript error since you cannot perform math operations on a string.

Sign in to reply to this post

MBrem

That was it. Thanks so much for your insight. I looked at those 100 times and didn't see the hyphen.

Sign in to reply to this post

Jason ByrnesWebAssist

No worries

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...