I figured it out. Since I used 'i' for my index of my ValForm() function 
I could not also use it in the character loop of the charCheck() 
function. "i" would increment far past the number of items in my 
fieldnames array, which is why I got null errors when attempting to 
access a value. I changed the index in charCheck() to "j" and it works 
(well, it required a bit more tweaking, but it came out for the most part.

Cutter

Joshua Miller wrote:

>A couple things:
>
>1. Is there someplace I can see this online to check it out?
>
>2. Have you tried just popping up the value of Item[4] when you run
>through the validator? A lot of times that will give you a good idea
>what's going on. Just stick an alert(Item[4]); in the function that's
>breaking. Then try an alert with that value - ie: if it's showing the
>value of Item[4] is Item.4 then try to alert(Item.4); and see if it's an
>object or a null value or what.
>
>Something like:
>
>function blValMail(field)
>{
>
>  Item = field;
>
>       // Debug
>       alert(Item);
>
>  return Item[4];
>
>       // Debug
>       alert(Item[4]);
>
>       // USING THE VALUE OF THE ITEM ABOVE
>       alert(Item.4); //or whatever the value from the alert above is.
>It will say [object] or [NaN] or "undefined" or something.
>
>}
>
>3. It looks at first glance like the value of Item will be a fieldname
>(I may be way off) but how could there be an array of the fieldname?
>For example if I have a field named "email" .... using your code I'd be
>looing for email[4]. What would the value of email[4] be?
>
>
>4. It seems like it would be MUCH simpler to include your messages and
>return codes in the individual validation functions instead of inside an
>array inside another array. You'll never need the message for invalid
>email inside another validator - save yourself the headache and section
>the messages and status codes into the individual functions, then just
>pass the fieldname to the validator.
>
>
>5. Here's what I've got: http://66.241.216.34/atomm/test_validation.cfm
>If you're interested I can send you the corresponding CF_RealFormNames
>tag that goes with this. You're more than welcome to take it, tweak it
>and make it do whatever you want.
>
>
>It would help if I could see this online to see how it's laid out - if
>possible. If you want to see my validator let me know and I'll send it
>to you.
>
>
>Thanks,
>
>Joshua Miller
>Head Programmer / IT Manager
>Garrison Enterprises Inc.
>www.garrisonenterprises.net
>[EMAIL PROTECTED]
>(704) 569-9044 ext. 254
> 
>************************************************************************
>*************
>Any views expressed in this message are those of the individual sender,
>except where the sender states them to be the views of 
>Garrison Enterprises Inc.
> 
>This e-mail is intended only for the individual or entity to which it is
>addressed and contains information that is private and confidential. If
>you are not the intended recipient you are hereby notified that any
>dissemination, distribution or copying is strictly prohibited. If you 
>have received this e-mail in error please delete it immediately and
>advise us by return e-mail to [EMAIL PROTECTED]
>************************************************************************
>*************
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to