View Full Version : Ajax and python simple server

28 May 2009, 5:42 PM
Hi folks,
I have a little problem using Ajax, so I'd be very grateful if anyone can help me.

I'm using a little local server in python using wsgiref.simple_server module. So when I run my browser with http://localhost, my data is actually shown to me, but when I want to retrieve it by Ajax, it doesn't work.

For now I'm just using a simple request

url: 'http://localhost/',
method: 'GET',
sucess: function(response, options){...}

Could anyone tell me what's wrong ?
Thx a lot!

29 May 2009, 5:05 PM
Does anybody know the problem ?

29 May 2009, 8:46 PM
sucess should be success and you should try a full URL to get a test page, not load your full home page.