If I understood it right, I think it would be enough to serve the
javascript with the initialization
value hardcoded in it, right? Like using {{ }} tags.
Is there a way to do this if there's a separate .js file?

- Gabriel

On Mon, Mar 4, 2013 at 1:41 PM, Shawn Milochik <[email protected]> wrote:

> Probably consume the view with AJAX, doing a POST on the change event
> of the slider.
>
> http://api.jquery.com/category/ajax/
>
> Put your result in a dictionary within your view and return it as JSON:
>
> return HttpResponse(json.dumps(result), mimetype="application/json")
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to