Re: Django + ajax waiting page, can not redirect to result page

2011-12-16 Thread yun li
thanks for Denis' suggestion, I can see errors now. looks like there is an AttributeError. here is the error information: ### AttributeError at /run_DHM 'dict' object has no attribute 'status_code' Request Method: GET Request URL:http://127.0.0.1:8000/

Re: Django + ajax waiting page, can not redirect to result page

2011-12-16 Thread yun li
I will try it 在 2011年12月16日 上午12:25,Denis Darii 写道: > You can view your js errors by pressing CTRL+SWIFT+J in Firefox but i > highly recommend you to install Firebug addon which allow you to view also > the received data from your ajax request. > > > On Fri, Dec 16, 2011

Re: Django + ajax waiting page, can not redirect to result page

2011-12-15 Thread yun li
ok": true} > > And then change this line in the JavaScript: > > if (data == 'OK') { > > to: > > if (data.ok) { > > I think it should work with those changes. If it doesn't, try checking the > JavaScript console in your browser for any errors. &g

Re: Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
rl displayDHM %}'; > } else { > alert(data); > } > }); > }); > > > > Please wait. > > > > I've also added a bit more to the

Re: Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
Hi, Does anyone can help? Here are all contents in my files, I tried variable ways, but when I submit a form, it only return the please_wait page and then stay there forever. There is no redirect happened. Since I want to check if it works first, there is no actual calculation in the code. ##

Django + ajax waiting page, can not redirect to result page

2011-12-14 Thread yun li
Hi all, I have the problem for constructing waiting page using Django + ajax. I followed instructions mentioned in the following link, http://groups.google.com/group/django-users/browse_thread/thread/c1b0d916bbf86868. However, when I run my program, it stops in http://127.0.0.1:8000/please_wait an