Search the web
Sign In
New User? Sign Up
validation · Techniques for HTML form validation
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
multipart/form-data   Message List  
Reply | Forward Message #368 of 427 |
Re: [validation] Re: multipart/form-data

Version 3.1.3 is the latest entry in the readme file


--- somematt <matthew.a.frank@...> wrote:

---------------------------------

what version are you using? i'll check what's on line
453.

--- In validation@yahoogroups.com, "s_chadaway"
<s_chadaway@...> wrote:
>
> Hi,
>
> I have a form with several fields on it which are
being validated
> using the script, works fine. However, I also have
a file input field
> on the form for uploading an image, if I fill this
field when
> submitting the form I get the following error:
>
> Error: uncaught exception: [Exception... "Security
error" code:
> "1000" nsresult: "0x805303e8
(NS_ERROR_DOM_SECURITY_ERR)" location:
>
"http://localhost/WebSites/test/www/includes/validation.js
Line: 453"]
>
> This only happens if I fill the file field in. Any
help much
> appreciated on this problem?
>
> Thanks
>
> Steve





---------------------------------
Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/validation/

To unsubscribe from this group, send an email to:
validation-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.






___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun!
http://uk.messenger.yahoo.com



Thu Jan 20, 2005 5:46 pm

s_chadaway
Offline Offline
Send Email Send Email

Forward
Message #368 of 427 |
Expand Messages Author Sort by Date

Hi, I have a form with several fields on it which are being validated using the script, works fine. However, I also have a file input field on the form for...
s_chadaway
Offline Send Email
Jan 20, 2005
5:19 pm

what version are you using? i'll check what's on line 453....
somematt
Offline Send Email
Jan 20, 2005
5:36 pm

Version 3.1.3 is the latest entry in the readme file ... what version are you using? i'll check what's on line 453. ... being validated ... a file input field...
Chadaway Steve
s_chadaway
Offline Send Email
Jan 20, 2005
5:46 pm

... if(element.value && element.type != "file") element.value = trim(element.value); <<< i haven't done much testing on the script with this change, so i don't...
somematt
Offline Send Email
Jan 20, 2005
11:39 pm

I've put that line in and the problem seems to have cleared up fine. Thanks for your help. ... if(element.value && element.type != "file") element.value = ...
Chadaway Steve
s_chadaway
Offline Send Email
Jan 21, 2005
4:03 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help