#10840: URL fetching for AJAX libraries
------------------------------------+---------------------------------------
 Reporter:  mathijs                 |       Owner:  nobody    
   Status:  new                     |   Milestone:  1.2       
Component:  Generic views           |     Version:  SVN       
 Keywords:  ajax url generic fetch  |       Stage:  Unreviewed
Has_patch:  0                       |  
------------------------------------+---------------------------------------
 When developing AJAX add-ons for my Django apps, they often need to post
 data on a specific url. Most of the time I'm forced to hard code this url
 into my scripts. However, if it would be possible to have a single url
 (read: view) that fetches the url for a given view name + variables, or
 returns an array of the sort: ["view_name" => "/user_%(id)/...", ...] (the
 %(id) part should than be replaced with the correct parameters), AJAX
 scripts can become more url-abstract.

 My request is a generic view that works as explained above, you could then
 enable it by adding one more URL to your url.py file pointing to this
 generic view. Comparable to what we have for i18n for AJAX. Some generic
 javascript code would also be needed to handle the parsing of the array
 (using caching etc).

 If you are interested in including such a feauture in trunk, I'd even be
 willing to write up some code.

 regards,
 Mathijs

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10840>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to