A couple of suggestions:

1. You can put the whole array of dates JSONized into a hidden field,
parse it in the webserver and validate it's values.

2. You can create input fields dynamically using JS on the client side
and using some dynamic form mechanism on the server side, and also
have some field which holds the number of dynamically created input
fields. Whenever a user submits the form, you check the number of
dynamically created fields and create a form with the number of those
dynamic fields.

Regards,
Aidas Bendoraitis [aka Archatas]

On 9/4/07, eriku777 <[EMAIL PROTECTED]> wrote:
>
> I have been tooling around with this wonderful javascript calendar
> that allows for the selections of multiple dates (with other really
> cool constraints) and then packs then all into an javascript array
> that can be walked though.  All the Django forms examples I have seen
> presume a fixed number form elements with predetermined field name
> names.  The array is dynamically created by the user by the javascript
> calendar.  I need some way to have django walk the array of date
> values, validate them, and accept them all for input.  Any one have
> any ideas on the most elegant way to do this?
>
> -- Eric --
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to