Re: problem using ajax in django

2009-06-10 Thread newbie
@DR: Yeah...you are right and that is why even i was confused with the error. Finally i phrased out the problem and it was because i did not restart the server after making changes to the view. In development environment, it automatically done but when we deploy it on apache server, its not. So t

Re: problem using ajax in django

2009-06-10 Thread Daniel Roseman
On Jun 10, 10:50 am, newbie wrote: > Hi, > >          I have written a small javascript ajax code in my django > application. Its working fine in the development environment. But when > i use the same code in the same django application running on apache > and also on  a different url(if it matte

Re: problem using ajax in django

2009-06-10 Thread Adam Stein
Don't know if this will help, but when I use AJAX, I don't set the mimetype in HttpResponse(), I just pass simplejson.dumps() to HttpResponse(): return HttpResponse(simplejson.dumps(response)) This approach works with Firefox, IE6, & IE7. On Wed, 2009-06-10 at 02:50 -0700, newbie wrote:

problem using ajax in django

2009-06-10 Thread newbie
Hi, I have written a small javascript ajax code in my django application. Its working fine in the development environment. But when i use the same code in the same django application running on apache and also on a different url(if it matters), it is not working. I have tried using Fire

Re: using ajax in django

2009-05-15 Thread maxent
@newbie - @margie already gave you a great answer. follow this series of blog posts: http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/ http://lethain.com/entry/2008/sep/24/custom-django-views-for-happier-ajax/ http://lethain.com/entry/2008/sep/25/layers-of-authent

Re: using ajax in django

2009-05-15 Thread newbie
Thank you very much for the support. But any tutorial for jquery would b preferable On May 15, 2:52 pm, jai wrote: > I have document in my blog about Ajax based form submission in > django.  pls gone through this > urlhttp://jayapal-d.blogspot.com/2009/05/django-ajax-submit-form.html > > Jayapa

Re: using ajax in django

2009-05-15 Thread newbie
Thank you very much for the support. On May 15, 2:52 pm, jai wrote: > I have document in my blog about Ajax based form submission in > django.  pls gone through this > urlhttp://jayapal-d.blogspot.com/2009/05/django-ajax-submit-form.html > > Jayapal > > On May 15, 11:18 am, Margie wrote: > > >

Re: using ajax in django

2009-05-15 Thread jai
I have document in my blog about Ajax based form submission in django. pls gone through this url http://jayapal-d.blogspot.com/2009/05/django-ajax-submit-form.html Jayapal On May 15, 11:18 am, Margie wrote: > I found a very good tutorial > athttp://lethain.com/entry/2008/sep/21/intro-to-uni

Re: using ajax in django

2009-05-14 Thread Margie
I found a very good tutorial at http://lethain.com/entry/2008/sep/21/intro-to-unintrusive-javascript-with-django/. I've just gone through it and it is really simple and helpful if you have little/no familiarity with ajax. Margie On May 14, 10:08 pm, veasna bunhor wrote: > Thanks for your sheari

Re: using ajax in django

2009-05-14 Thread veasna bunhor
Thanks for your shearing a good knowledge. I'll do it. Veasna, On Thu, May 14, 2009 at 9:42 PM, zayatzz wrote: > > Im also a django beginner, but i have bit more advanced knowledge > about js/jquery > > Here's what ive learned so far: All js events happen in browser and > are all related/attac

Re: using ajax in django

2009-05-14 Thread zayatzz
Im also a django beginner, but i have bit more advanced knowledge about js/jquery Here's what ive learned so far: All js events happen in browser and are all related/attached to some DOM elements. Basic (model)form flow works like that: You create a model You create a modelform (in apps forms.py

Re: using ajax in django

2009-05-14 Thread veasna bunhor
Dear newbie, I am a fourth-year student in IT in cambodia. I just start to learn Python, and now i just start to learn about how to develop the website by using DJANGO. Could you please give to me any idea and tell me about some document for the very beginner programming. Thanks in a

using ajax in django

2009-05-13 Thread newbie
hi, I'm new to django and dont know much of javascript either. I would like to start working on them. Could someone help me write a simple form which can provide any functionality using ajax, preferably using jquery libraries. It would be great if any event other than the submit event