close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation works in Firefox not IE

Thread began 12/04/2010 2:51 am by paulshoe379536 | Last modified 12/07/2010 9:44 am by paulshoe379536 | 981 views | 3 replies |

paulshoe379536

Validation works in Firefox not IE

I am trying to use "Client Validation" for an image upload field on my form. The validation works as expected in Firefox, but always gives me a validation error in IE7 or IE8.

I am using "Alphanumeric" validation and the file name I am using for the test is "bob.jpg" (which should pass the validation).

What am I doing wrong? Is there a better way to validate the characters allowed in a file name?

I have attached a screen capture of the configuration window.

Your suggestions are appreciated.

Sign in to reply to this post

anonymous

Paul,

The one thing I would probably do different is validate the file extension rather than the extension name.

You can then ensure the type of file you want to be uploaded is being uploaded. Is there a particular reason why you want to validate the file name rather than the file extension (type) ?

Best regards,

Brian

Sign in to reply to this post

Jason ByrnesWebAssist

This is a classic case of ie implementing different standards in javascript than other browsers.


to pull IE out of the equation, you should validate the file field server side instead of using client side validation.

Sign in to reply to this post

paulshoe379536

Thanks,

I am also validating the file type but I also wanted to make sure they weren't using unacceptable characters.

Since there's a problem with the Client Validation tool and IE, I think I'll use preg_replace to correct the invalid characters. That way, the visitor won't need to be prompted to correct their entry.

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