1 2 3 4 5 6 7 8 9 10 11 12 13 | function error_sink(req, msg, err_obj){
var context = { url: this.url };
context["data"] = this.data;
context["timeout"]= this.timeout;
context["msg"] = msg;
context["error"] = err_obj;
context["time"] = Date().toString();
jQuery.get('/ajax/error-sink/', jQuery.param({ context: jQuery.param(context) }));
};
jQuery(function($){
$.ajaxSetup({error: error_sink});
});
|
More like this
- ajax_validator generic view by amitu 4 years, 7 months ago
- Add context_data to a UpdateView if form is valid by jayfk 6 days, 14 hours ago
- Partial JSON template rendering by barbuza 5 years, 6 months ago
- Jquery ajax csrf framework for Django by chriszweber 1 year, 4 months ago
- Workaround Firefox bug 553888 by peroksid 2 years, 2 months ago
Comments