I call
$.getJSON('http://localhost:8000/polls/?callback=?', function(data)
and recieve an error:
Error: parsererror errorThrown: jQuery16103397698865741826_1320825997345 was not called
If I call a json file that is next to my html file it works fine.
If I call the google example url: http://www.highcharts.com/samples/data/jsonp.php?filename=aapl-c.json&callback=?
it also works.
Any ideas? I think that maybe it has something to do with DJango or the way I return from my server side code.
index(request):
a = {}
a[1320675940] = 1.8
a[1320675941] = 2.8
a[1320675942] = 38
a[1320675943] = 4.8
a[1320675944] = 5.8
a[1320675945] = 6.8
a[1320675946] = 7.8
data = simplejson.dumps(a)
return HttpResponse(data, mimetype="text/plain")
#return HttpResponse(data, mimetype="json")
#return HttpResponse(str(data), mimetype="text/plain")