Hi,
When I use $('blah').load() to fetch a response into a div it seems to be
pulling the data twice. This I see in Firebug where there are 2 GET headers.
Here is the JS that is fired on a click of a span tag:
$('#pickoradd_author').click( function() {
$('#lister').load('http://ddm/incunabula/zozo/authorartist');
} );
#lister is a div. This all works but it pulls twice. The view does:
return render_to_response('zozo.html',
context_instance = RequestContext( request ) )
Any ideas?
The headers returned in Firebug are (cropped somewhat):
Response Headers
Content-Type text/html; charset=utf-8
Location http://ddm/incunabula/zozo/authorartist/
Content-Length 0
Request Headers
Host ddm
Accept text/html, */*
X-Requested-With XMLHttpRequest
Referer http://ddm/incunabula/new/relic/book/
Cookie sessionid=542f59886e684fa01268b7215bc761cf
And also:
Response Headers
Transfer-Encoding chunked
Vary Cookie
Content-Type text/html; charset=utf-8
Request Headers
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer http://ddm/incunabula/new/relic/book/
Cookie sessionid=542f59886e684fa01268b7215bc761cf
I am getting nowhere trying to savvy this. Any ideas?
\d
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---