Re: form validator issue

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61510
interpreted = N
texte = I'll give it a shot anyways...... My way works but I'd like to see how this works as well thanks --- Dan Strong wrote: > Well, if anybody's interested, here's the javascript > solution to Lester's prob: > > > > > > >
action="landing_page.html" name="THE_FORM" > onsubmit="return Blank_TextField_Validator()"> > size="80"> > >
> > > -Dan > > > > > > On Sat, 19 Mar 2005 06:48:07 -0800 (PST) > Lester wrote: > > duh... > > I figured a good nights sleep would help. > > > > I initially messed up by deleting a small line > that > > was always in my other snippets, causing all this > to > > fail miserably over and over again. > > > > Slowly re-assembled this form and all is well. > > > > No empty fields can pass, although I just realized > > "just spaces" do. Photo uploads are fine if one is > > indicated. > > > > How would I check for just "spaces" in a field.... > or > > am i being too paranoid. I only require 2 fields > as > > mandatory, the "Title" and the "Text". > > > > > > > > Thanks to all for trying to help on this. > > > > > > > > --- Terry Wilson wrote: > >> >I put this on the input form page: > >> > > >> >[FormVariables] > >> >[index],[name],[value]
> >> >[/FormVariables] > >> > > >> > > >> >this is one of the lines I get > >> >on the form validate page: > >> > > >> >8,Content-Disposition: form-data; > name="BlogText", > >> > > >> > > >> >still appears blank to me > >> >???? > >> > >> Your formvariable test below should have shown > you > >> the problem > >> inherent in using enctype="multipart/form-data; > that > >> is, the name > >> themselves are transformed into a more complex > >> string. In your > >> validator, you're expecting to find a variable > named > >> "Blogtext" but > >> now it's actually called "Content-Disposition: > >> form-data; > >> name="BlogText"", so your validator never even > sees > >> [blogtext] to > >> validate for it. It sees [Content-Disposition: > >> form-data; > >> name="BlogText"] though. > >> > >> With my uploads I use formvariables and pull out > the > >> names using > >> middle, and use [text] to rewrite the variables > with > >> the original > >> names I intended. Then the following validation > code > >> you expect will > >> work. I think the sample you downloaded probably > has > >> something like > >> this in it. It differentiates between the one > >> variable holding the > >> file itself, and the others by looking for the > >> presence of "filename" > >> in the string. Sounds complicated and looks ugly, > >> but once you wrap > >> your head around it, it makes sense. > >> > >> Terry > >> > >> > > > ------------------------------------------------------------- > >> This message is sent to you because you are > >> subscribed to > >> the mailing list > >> . > >> To unsubscribe, E-mail to: > >> > >> To switch to the DIGEST mode, E-mail to > >> > >> Web Archive of this list is at: > >> http://webdna.smithmicro.com/ > >> > > > > > >  > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > ------------------------------------------------------------- > > This message is sent to you because you are > subscribed to > > the mailing list > . > > To unsubscribe, E-mail to: > > > To switch to the DIGEST mode, E-mail to > > > Web Archive of this list is at: > http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are > subscribed to > the mailing list > . > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://webdna.smithmicro.com/ >  __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: form validator issue ( Lester 2005)
  2. Re: form validator issue ( "Dan Strong" 2005)
  3. Re: form validator issue ( Lester 2005)
  4. Re: form validator issue ( Terry Wilson 2005)
  5. Re: form validator issue ( Jesse Proudman 2005)
  6. Re: form validator issue ( Kenneth Grome 2005)
  7. Re: form validator issue ( Lester 2005)
  8. Re: form validator issue ( "Gary Krockover" 2005)
  9. Re: form validator issue ( Lester 2005)
  10. Re: form validator issue ( "Gary Krockover" 2005)
  11. Re: form validator issue ( Lester 2005)
  12. Re: form validator issue ( "Dan Strong" 2005)
  13. Re: form validator issue ( Lester 2005)
  14. Re: form validator issue ( Sal D'Anna 2005)
  15. Re: form validator issue ( Lester 2005)
  16. Re: form validator issue ( Aaron Lynch 2005)
  17. form validator issue ( Lester 2005)
I'll give it a shot anyways...... My way works but I'd like to see how this works as well thanks --- Dan Strong wrote: > Well, if anybody's interested, here's the javascript > solution to Lester's prob: > > > > > > >
action="landing_page.html" name="THE_FORM" > onsubmit="return Blank_TextField_Validator()"> > size="80"> > >
> > > -Dan > > > > > > On Sat, 19 Mar 2005 06:48:07 -0800 (PST) > Lester wrote: > > duh... > > I figured a good nights sleep would help. > > > > I initially messed up by deleting a small line > that > > was always in my other snippets, causing all this > to > > fail miserably over and over again. > > > > Slowly re-assembled this form and all is well. > > > > No empty fields can pass, although I just realized > > "just spaces" do. Photo uploads are fine if one is > > indicated. > > > > How would I check for just "spaces" in a field.... > or > > am i being too paranoid. I only require 2 fields > as > > mandatory, the "Title" and the "Text". > > > > > > > > Thanks to all for trying to help on this. > > > > > > > > --- Terry Wilson wrote: > >> >I put this on the input form page: > >> > > >> >[formvariables] > >> >[index],[name],[value]
> >> >[/FormVariables] > >> > > >> > > >> >this is one of the lines I get > >> >on the form validate page: > >> > > >> >8,Content-Disposition: form-data; > name="BlogText", > >> > > >> > > >> >still appears blank to me > >> >???? > >> > >> Your formvariable test below should have shown > you > >> the problem > >> inherent in using enctype="multipart/form-data; > that > >> is, the name > >> themselves are transformed into a more complex > >> string. In your > >> validator, you're expecting to find a variable > named > >> "Blogtext" but > >> now it's actually called "Content-Disposition: > >> form-data; > >> name="BlogText"", so your validator never even > sees > >> [blogtext] to > >> validate for it. It sees [Content-Disposition: > >> form-data; > >> name="BlogText"] though. > >> > >> With my uploads I use formvariables and pull out > the > >> names using > >> middle, and use [text] to rewrite the variables > with > >> the original > >> names I intended. Then the following validation > code > >> you expect will > >> work. I think the sample you downloaded probably > has > >> something like > >> this in it. It differentiates between the one > >> variable holding the > >> file itself, and the others by looking for the > >> presence of "filename" > >> in the string. Sounds complicated and looks ugly, > >> but once you wrap > >> your head around it, it makes sense. > >> > >> Terry > >> > >> > > > ------------------------------------------------------------- > >> This message is sent to you because you are > >> subscribed to > >> the mailing list > >> . > >> To unsubscribe, E-mail to: > >> > >> To switch to the DIGEST mode, E-mail to > >> > >> Web Archive of this list is at: > >> http://webdna.smithmicro.com/ > >> > > > > > >  > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > ------------------------------------------------------------- > > This message is sent to you because you are > subscribed to > > the mailing list > . > > To unsubscribe, E-mail to: > > > To switch to the DIGEST mode, E-mail to > > > Web Archive of this list is at: > http://webdna.smithmicro.com/ > > > ------------------------------------------------------------- > This message is sent to you because you are > subscribed to > the mailing list > . > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: > http://webdna.smithmicro.com/ >  __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Lester

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

adding second sku (2000) Can I invoke an ssi plugin from within a webcat page (1997) encrypted query string trouble on OSX (2001) 'does not contain' operator needed ... (1997) V4, simultaneous release? (2000) WebDNA Solutions ... sorry! (1997) Line items in table cells (1997) search command (1999) credit card (1997) Show items based on login Password (2003) off topic fetch vs PCS photomaster (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Cart/ Form Use (1998) RE: shrink-wrapped version out yet? (1997) Forms (1998) [WebDNA] tcp connect who is (2008) international time (1997) WebCat2b13 Command Reference Doc error (1997) [isfile] ? (1997) New to WebDNA.. Dreamweaver Extensions? (2005)