Re: Calling Python from JavaScript

2011-11-02 Thread Furbee
You could call the Dajaxice method that gets the result (the one that fires when the drop down changes) with window.onload, or you could pass the initial values to the template via the view. For consistency and code reuse, I would personally use the first method, calling the Dajaxice function respo

Calling Python from JavaScript

2011-11-02 Thread asif
I will explain what i'm trying to achieve, I'm using Dajaxice with Django. I created modelformset which consist of multiple forms. Each form has dropdown field on which I'm calling dajaxice function, that function will takes the value of the dropdown field and calls another python function which c