Re: first naive question for a new fresh Django user

2007-09-11 Thread r_f_d
Using the code listed (return render_to_response) is going to cause a page refresh (a synchronous operation), if you are trying to use ajax (asynchronously), you should stick the html from the form and the entry into a json or xml object to return to your javascript callback. This is

Re: first naive question for a new fresh Django user

2007-09-11 Thread Daniel Roseman
On Sep 11, 3:11 pm, garonne <[EMAIL PROTECTED]> wrote: > Hello, > > I 've started playing with Django which seems very well for what i > need but i still can figure out how to implement a very simple ajax > example: > > I would like to have a form with a textarea and after pressing the > button,

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
Hi, I know it was just an illustration... My final idea is to implement a browser for our system which could be represent as a file system. I've found this beautiful interface for SVN : https://xbmcajax.bountysource.com/svn/ This is in Ruby + Ajax but as our application is purely in python i

Re: first naive question for a new fresh Django user

2007-09-11 Thread MikeHowarth
To be honest I'm not really sure the use of Ajax in printing a piece of text from a field is that necessary. This could easily be acheived using good old javascript. On Sep 11, 3:25 pm, vincent garonne <[EMAIL PROTECTED]> wrote: > * would like > > vincent garonne a écrit : > > > > > Hi, >

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
* would like vincent garonne a écrit : > Hi, > > I would to do the same than this example: > > http://www.hackorama.com/ajax/ > > Vince > > MikeHowarth a écrit : > >> I'm not entirely sure I follow your request. >> >> However using Ajax in Django is a fairly simple affair:http://www.b-

Re: first naive question for a new fresh Django user

2007-09-11 Thread vincent garonne
Hi, I would to do the same than this example: http://www.hackorama.com/ajax/ Vince MikeHowarth a écrit : > I'm not entirely sure I follow your request. > > However using Ajax in Django is a fairly simple affair:http://www.b- > list.org/weblog/2006/jul/02/django-and-ajax/ > > > > On Sep 11,

first naive question for a new fresh Django user

2007-09-11 Thread garonne
Hello, I 've started playing with Django which seems very well for what i need but i still can figure out how to implement a very simple ajax example: I would like to have a form with a textarea and after pressing the button, i wish to see the form and the text print below. For some reason i'm

Re: first naive question for a new fresh Django user

2007-09-11 Thread MikeHowarth
I'm not entirely sure I follow your request. However using Ajax in Django is a fairly simple affair:http://www.b- list.org/weblog/2006/jul/02/django-and-ajax/ On Sep 11, 3:11 pm, garonne <[EMAIL PROTECTED]> wrote: > Hello, > > I 've started playing with Django which seems very well for what i