Re: django with ajax without using jquery

2012-02-21 Thread Sébastien Billion
Hi, I understand you want to learn Ajax.. So google is your friend: http://www.xul.fr/en-xml-ajax.html 2012/2/21 dummyman dummyman > Which is the best place to start with using django and ajax without using > jquery ? > > I meant calling the view function from javascript without using jquery >

Re: django with ajax without using jquery

2012-02-21 Thread Masklinn
On 2012-02-21, at 12:00 , dummyman dummyman wrote: > Which is the best place to start with using django and ajax without using > jquery ? > > I meant calling the view function from javascript without using jquery > features The closest XMLHttpRequest tutorial? The Mozilla Developer Network is usu

django with ajax without using jquery

2012-02-21 Thread dummyman dummyman
Which is the best place to start with using django and ajax without using jquery ? I meant calling the view function from javascript without using jquery features -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Django with AJAX, execution of long processes

2010-08-07 Thread marekw2143
You can spawn another process in system, and save identification data of that process in users's session, and then query django for status of the process. I guess you can also implement long pooling in django to query for status of the process. But generally if talking about long pooling it's worth

Re: Django with AJAX, execution of long processes

2010-08-07 Thread marekw2143
You can spawn another process in system, and save identification data of that process in users's session, and then query django for status of the process. I guess you can also implement long pooling in django to query for status of the process. But generally if talking about long pooling it's worth

Django with AJAX, execution of long processes

2010-08-07 Thread Rohan Jain
Hi! I have a problem with django and ajax. I am giving requests from ajax which run a process that takes some time and has many stages. Is there any way to return the various stages as responses, so the user does not have to see only the loading image but can also the current status of the process

Re: Django with ajax

2009-06-02 Thread Aldo
Thanks Jorge, Dajax looks very useful. Ill do it with Json though until Dajax becomes mainstream. Thanks. On Jun 2, 10:47 am, Jorge Bastida wrote: > Hello Marc, > > You can render a template into an string. > > from django.template.loader import render_to_string > my_template = render_to_string

Re: Django with ajax

2009-06-02 Thread Jorge Bastida
Hello Marc, You can render a template into an string. from django.template.loader import render_to_string my_template = render_to_string('template.html',{'some':'data'}) If you want to send the list of objects to the browser you can use serialization into json: http://docs.djangoproject.com/en/d

Django with ajax

2009-06-02 Thread Aldo
Hey, I have some ajax running on my pages. I want to have it pass back some objects. However, I am unsure if I can pass a list of objects back. So far I have only ever passed back raw xml or text. Can objects be passed and then iterated via the html template? Thanks --~--~-~--~~

Re: Django with Ajax

2008-05-10 Thread Diego Ucha
Monica, I recommend this thread: http://groups.google.com/group/django-users/browse_thread/thread/a26d805427aa643f/c856de7596c3e249?hl=en#c856de7596c3e249 I think it will solve your problem. []s Diego Ucha On May 9, 2:52 pm, "Monica Leko" <[EMAIL PROTECTED]> wrote: > On 5/9/08, Richard Dahl <[E

Re: Django with Ajax

2008-05-09 Thread Monica Leko
On 5/9/08, Richard Dahl <[EMAIL PROTECTED]> wrote: > > I am not sure what the dom1.toxml() does, are you seeing: > > > > > > left="Necklace"/> > Yes, I am seeing this text. Darn. :( --~--~-~--~~~---~--~~ You received this message because

Re: Django with Ajax

2008-05-09 Thread Richard Dahl
I am not sure what the dom1.toxml() does, are you seeing: in firebug, to be sure that it is correctly returning the xml? If so then the problem is most likely within the javascript and you may have better luck at the googlemaps api group. -richard On 5/9/08, Monica Leko <[E

Re: Django with Ajax

2008-05-09 Thread Monica Leko
On 5/9/08, Richard Dahl <[EMAIL PROTECTED]> wrote: > > I am not sure what javascript library you are using based on the code Google maps. GXmlHttp is just like XmlHttpRequest Now I have this in my view: return HttpResponse(dom1.toxml(), mimetype="text/xml") And still my var xmlDoc = request

Re: Django with Ajax

2008-05-09 Thread Richard Dahl
I am not sure what javascript library you are using based on the code snippet, but you seem to be looking for a javascript object to be returned that contains XML. What you are returning is simply the text 'hello world' as a plain vanilla http response. You need to return the type of object that

Django with Ajax

2008-05-09 Thread Monica Leko
Hi I am trying to use some simple AJAX call, and can't get right result. I am using this Javascript function: function filterMarkers(){ var request = GXmlHttp.create(); request.open('GET', '/lbs/' + "?q=placeholder, true); request.onreadystatechange = function() {