List Info

Thread: YUI AJAX Forms




YUI AJAX Forms
user name
2006-12-27 14:05:34
I want to implement something like AJAX interface (using
Yahoo User
Interface toolkit) for changing information in database.

I want it to make possible to create window for a model, and
when user
wants to edit something he is shown a AJAX window with
fields needed.

I wonder if it is possible to mix it with newforms - for
example
implement something like own Widgets and pass them to
Fields. And
create own Form class that is able to send to browser
information about
fields needed (maybe in JSON or XML).

But I want to add possibility of adding autocopletion to
text fields,
and something for Foreign Key - it should be possible to
allow user to
choose object from list downloaded from server. But I cannot
pass it to
Fields, because they have no options like this.

How do you think, is it possible to join it with newforms?
Or there's no use doing it, and everything will be easier,
writing it
from the beginning?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

YUI AJAX Forms
user name
2006-12-29 01:02:12
For the autocomplete, surely you can create a custom widget
that output
the desired format (an input and a div), but, as ever, the
js should be
in the template layer.

About the ajax form handling, the most accessible way is
doing it all
in js, replacing normal behaviour. So, if someone have not
ajax
enabled, it can use the form in an old fashion way. With YUI
and
YUI-EXT it's very easy 


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )