Am 24.10.12 11:26, schrieb Coulson Thabo Kgathi:
i used django template language to access value from my models in the
database which are coordinates the using javascript i wrote a function
that give a list of coordinates that are within a polygon in a map.
now i want to send that list back to a view or view then database table
Hi,
like Stephen mentioned you can use a post request [1] for that.
The field 'data' could contain the list of coordinates in an array [2]
with the name 'coords' which itself can be accessed within the view via
request.POST['coords'].
One of many examples you can find here:
http://stackoverflow.com/questions/5457568/retrieving-post-data-from-jquery-in-django-without-a-form
[1] http://api.jquery.com/jQuery.post/
[2] http://de.selfhtml.org/javascript/objekte/array.htm
Good luck,
TR
thanks
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Xf7F_Q9554YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
Python Software Development - http://www.pyt3ch.com
--
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
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.