﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10840	URL fetching for AJAX libraries	Mathijs Dumon	nobody	"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
"		closed	Generic views	dev		fixed	ajax url generic fetch	qingfeng@…	Design decision needed	0	0	0	0	0	0
