Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread meli...@melindaminch.com
Hello! To answer the question about template tags in javascript, i.e. $.post("{% url 'upvote' %}", {answer_id:answerid}) I This works when your js is written in the template, as you have it, but if you ever want to move that JavaScript into a separate .js file, it will break. That’s because

Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread Stephen J. Butler
This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use the "arrow function" style like "() => { ...code... }" then certain variables are not bound into the function contact, including "this".

Re: Ajax in Django

2015-09-19 Thread Martin Torre Castro
If you use jQuery (I do), making AJAX requests is incredibly easy. Just use the $.get(), $.post() or $.ajax() functions. If you have any doubt, the api.jquery.com page has all the references and information for using them (search for jQuery.get(), jQuery.post() and jQuery.ajax() ). On Monday,

Re: Ajax in Django

2015-08-31 Thread Dheerendra Rathor
Ajax are just normal HTTP requests. You can write a view in your code which returns data from db. If it is a post requests then make sure you're adding "csrfmiddlewaretoken" in the ajax data. On Mon, 31 Aug 2015 at 19:30 jasir1903 wrote: > How to retrive Data from Db in

Re: ajax and django

2013-07-26 Thread Lucas Magnum
https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#ajax []'s Lucas Magnum. 2013/7/26 Lucas Magnum > Are you passing crsf_token in ajax post? > > []'s > > Lucas Magnum. > > > 2013/7/26 heni yemun > >> Hi, >> I'm trying to get a django project

Re: ajax and django

2013-07-26 Thread Lucas Magnum
Are you passing crsf_token in ajax post? []'s Lucas Magnum. 2013/7/26 heni yemun > Hi, > I'm trying to get a django project interact with ajax based site. The > problem is that when i use the send function to send a POST data > asynchronously the django app returns a 500

Re: ajax and django

2010-11-22 Thread Reinout van Rees
On 11/22/2010 11:48 PM, owidjaya wrote: What is the best way to go about handling ajax request per application? I currently have a middleware that implements "process_request" function. the function acts as a relay to call "serve_ajax(request)" function that is implemented in the application

Re: ajax and django

2010-11-22 Thread owidjaya
correction it's "process_response" function not process_request. On Nov 22, 2:48 pm, owidjaya wrote: > What is the best way to go about handling ajax request per > application? > > I currently have a middleware that implements "process_request" > function. > the function acts

Re: Ajax with Django

2010-02-05 Thread chefsmart
http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/ On Feb 5, 2:19 am, Rohan Shah wrote: > Any good documentation available on how to implement AJAX with Django ? > > -- > Thanks and Regards, > Rohan Shah > >

Re: Ajax with Django

2010-02-04 Thread Prashanth
On Fri, Feb 5, 2010 at 2:49 AM, Rohan Shah wrote: > Any good documentation available on how to implement AJAX with Django ? > http://www.b-list.org/weblog/2006/jul/31/django-tips-simple-ajax-example-part-1/ -- regards, Prashanth twitter: munichlinux blog:

Re: Ajax with Django

2010-02-04 Thread Jonathan Orlando
http://code.google.com/p/dojango/ What is dojango Dojango is a reusable django application that helps you to use the client-side framework dojo within your django project. - It provides capabilites to easily switch between several dojo versions and sources (e.g. aol, google, local) -

Re: Ajax with Django

2010-02-04 Thread Gonzalo Delgado
El 04/02/10 18:19, Rohan Shah escribió: > Any good documentation available on how to implement AJAX with Django ? http://lmgtfy.com/?q=django+ajax=1 -- Gonzalo Delgado -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Ajax in Django

2009-08-12 Thread Jorge Bastida
I' currently working in/with Dajax. http://code.google.com/p/dajaxproject/ I hope it helps you. -- neo2001[at]gmail.com jorge[at]thecodefarm.com neo[at]art-xtreme.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Ajax in Django

2009-08-12 Thread Malcolm Tredinnick
On Wed, 2009-08-12 at 11:47 +0300, Jani Tiainen wrote: > HB kirjoitti: > > Hey, > > Why Django doesn't provide integration with Ajax out of the box (like > > Rails and Wicket)? > > It all depends what you mean by "integration"? > > You can use (model)forms with Ajax, or use any other means if

Re: Ajax in Django

2009-08-12 Thread Jani Tiainen
HB kirjoitti: > Hey, > Why Django doesn't provide integration with Ajax out of the box (like > Rails and Wicket)? It all depends what you mean by "integration"? You can use (model)forms with Ajax, or use any other means if you wish. Only thing that django doesn't provide is Ajax form rendering

Re: Ajax in Django

2008-07-08 Thread Matthias Kestenholz
On Mon, 2008-07-07 at 21:50 -0700, bharathi wrote: > I am creating one Django application with jquery.. > In that Jquery function am using One Ajax script.. Django code cant > taken that ajax code... > > My code is: > > $(document).ready( > function () { >

Re: Ajax in Django

2008-07-08 Thread Kenneth Gonsalves
On 08-Jul-08, at 10:20 AM, bharathi wrote: > I am creating one Django application with jquery.. > In that Jquery function am using One Ajax script.. Django code cant > taken that ajax code... this code must be put in the HEAD section of the html - so create a block 'head' in the head

Re: Ajax and Django example application

2006-08-04 Thread Darryl Caldwell
That is awesome. Thanks for putting this together.-dOn 8/3/06, Istvan Albert <[EMAIL PROTECTED] > wrote:Hello All,For those interested here is an AJAX based demo application using django, developed with two different _javascript_ libraries: Prototypeand with

Re: Ajax and Django example application

2006-08-04 Thread Corey Oordt
Istvan, Thanks for the code. I can't wait to dive into it. Corey On Aug 4, 2006, at 12:12 AM, Istvan Albert wrote: > > Hello All, > > For those interested here is an AJAX based demo application using > django, developed with two different javascript libraries: Prototype > and with MochiKit >