close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Client side validation not working

Thread began 10/19/2011 10:38 am by lbunnell124698 | Last modified 10/19/2011 4:55 pm by Jason Byrnes | 1041 views | 5 replies |

lbunnell124698

Client side validation not working

I'm using a client side validation to prevent users from entering anything but a number into the field however the validation doesn't seem to do anything except prevent the field from passing it's value through the POST which causes the insert function to fail due to too few values being passed.

<input name="agtFee" type="text" id="agtFee" onblur="WAValidateRT(document.forms[2].agtFee,document.forms[2].agtFee.value,'- Invalid content in entry. Do not use \'$\', \'%\' or \',\'','%20%25%20|, %20$%20|, ,|',document.forms[2].agtFee,1,false);WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,document.rebateInsert,false);return document.MM_returnValue" />

I do get this pop-up error from time to time when working on the page:

"While executing analyzeServerBehavior in InsertRecord.htm, a JavaScript error occurred."

Sign in to reply to this post

Jason ByrnesWebAssist

the validation you have here is the restrict content validation set to restrict the following characters:
$ % and ,


this will nor set the field to only allow numbers, it will still allow letters using this validation type.

Also, since this validation type is applied to the on blur event of the text field, it will not prevent the form from submitting if the validation does not pass.

I dont recommend using client side validation for this, the downside to using client side validation is that it can be easily foiled by disabling javascript ion your browser.

I would recommend using Server Side validation instead, and using the numeric validation type, not restrict content.

for the error:
Delete the Dreamweaver Cache file from the users configuration folder:
common_installation_issues.pdf

Sign in to reply to this post

lbunnell124698

Jason,

I undertand that the retrict content validation isn't currently keeping anything nut % - $ , from being entered, but even when I just enter those restricted characters there is no validation pop up.

Lawrence

Sign in to reply to this post

Jason ByrnesWebAssist

the validation should be applied to the forms on submit action, not the fields on blur action.

Sign in to reply to this post

lbunnell124698

I thought that was one of the reasons to use a client side validation - so that the user doesn't move on to the next field before correcting their entry. That doesn't seem to fix the error either.

<input name="button" type="submit" id="button" onclick="WAValidateNM(document.forms[2].agtFee,'- Invalid number format',0,100,'','','',',.',document.forms[2].agtFee,1,true)" value="Insert" />

I'm able to enter anything I want in the field and nothing happens on submit except the error mentioned previously.

Also, for the error, is there a fix for CS5.5? There doesn't seem to be a WinFileCache.dat file.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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...