Thanks Jim, 

This occurs in both IE and FF.

When I tried your suggestion with just one and multiple checkboxes. In
both cases alert(typeof e.atccNum); returned object.

I figured out a hack solution though, I used a hidden variable with
the same name and an empty value. That seems to work, but its not an
elegant solution.

larry

On 7/21/05, Jim Davis <[EMAIL PROTECTED]> wrote:
> I may be wrong, but:
> 
> I don't believe that the processing to occur when multiple form fields with 
> the same name are present is standardized.  IE, if it finds it, converts them 
> to an array, but if it finds only one does not.
> 
> Do an "alert(typeof e.atccNum);" before you process.  I think you'll find 
> that when there's only one element your get "string" instead of "object" 
> (which it will be if it's an array).
> 
> You should then be able to do an if statement with the typeof to determine if 
> you need to process the array or not.
> 
> Jim Davis
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:5:165818
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to