Hi, This might sound a bit like a jquery question. But since I'm pretty sure that my jquery code is okay, it seems for me that my problem has to do with django.
I try to reload a form and the head of the page with a jquery ajax call: $("#id_is_active").change(function(){ url = '{{ url_start_manage_plan_days }}?is_active=' + $ (this).val(); $.get(url, function(results){ var head = $('head', $(results)); $("head", $(results)).each ( function() { alert("got a match "); }); var form = $("form.ajax_form_result", results); //update the ajax_form_result div with the return value "form" $('head').html(head); $('#ajax_form_result').html(form); }, "html"); }); The form update is working properly. But the <head> update always results in an empty head. I'm sure that my view returns a complete html page. context = { 'manage_plan_days_form' : manage_plan_days_form, 'url_start_manage_plan_days' : url_start_manage_plan_days, 'json_data_handler' : json_data_handler, 'get_param_year' : get_param_year, 'get_param_project_id' : get_param_project_id, 'is_active_param' : is_active_param, } template = 'project_management/manage_plan_days.html' if not get_param_project_id: request.user.message_set.create(message='Please select a project.') return render_to_response(template, context, context_instance=RequestContext(request)) The manage_plan_days.html' extends a base.html which has the head tag I want to select with my jquery. The page renders fine when I just call it with a "normal" GET call. I really have no clue which could be the problem. I hope I will find some help here. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.