Saturday, June 29, 2013

Re: Render dynamic form based on meta data

Django can handle some of that for you but not all, you will need to use javascript to handle the dynamics on the page itself., I use jquery, and use django to take the ajax calls and return data.

If you don't have that much data you could just add it to the HTML page in javascript structures, would be easier to deal with than making ajax calls.

Cheers

François

On Jun 29, 2013, at 5:28 AM, Avishay Balderman <balderman@gmail.com> wrote:

> Hi
> I need to implement a django app that has the following capabilities:
> 1) When the main page loads it needs to dynamically (Ajax) populate a combo (<select>) with a list of "form types"
> 2) When the user select an item from the "form types" combo, the app should issue Ajax call and fetch meta data. This meta data will bu used in order to render a form.
>
> Can you please advice?
>
> Thanks
>
> Avishay
>
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment