Hi All,
I am facing a problem in login screen using XMLHttpRequst sending the
data to the controller.controller is getting the value through
request.POST. but its not redirecting the same.
from django.http import HttpResponse, HttpResponseRedirect
import db
def login(request):
args = []
proc_name='c_user_f'
args.append(request.POST['username'])
args.append(request.POST['password'])
result = db.fetchOne(proc_name,args)
if result[0]:
return HttpResponseRedirect("/main/")
else:
return HttpResponseRedirect("/login/")
HttpResponseRedirect is working fine with html but with XMLHttpRequest
is not
working. Please help us in this regard.
Thanks in advance,
Madhu Alagu
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---