> But also, it's bad bad form to define your own attribute names on HTML. Use
> the "data-answer-id" attribute name to do this, and in your code access it
> with $(this).data("answer-id").
>
> On Sun, May 31, 2020 at 2:19 PM Jan Gregorczyk <mailto:jnk.gregorc...
$.post("{% url 'upvote' %}", {answer_id:answerid});
});
But also, it's bad bad form to define your own attribute names on HTML. Use
the "data-answer-id" attribute name to do this, and in your code access it
with $(this).data("answer-id").
On Sun, May 31, 202
I have a problem with Ajax and Django templates. I'm new to Ajax and jquery.
Console log at the end of the script prints undefined. I don't know why let
answerid = $(this).attr("answer-id"); doesn't extract attribute from this
line:
I also want to know if using template tags in
connect the external independent template(contains of javascript and ajax)
with django backend to pass the image from front end and get the image in
backend convert into the zip file and post to external javascript template
--
You received this message because you are subscribed to the Google
thanks for you answer y wiil read the documentation
2018-04-26 4:42 GMT-07:00 Avraham Serour :
> I suggest taking a look at http://intercoolerjs.org
>
>
> On Thu, Apr 26, 2018 at 7:36 AM,
> wrote:
>
>> Im starting a social network for my
I suggest taking a look at http://intercoolerjs.org
On Thu, Apr 26, 2018 at 7:36 AM, wrote:
> Im starting a social network for my school and i need to show the coments
> of my post without recharging the whole and for other things in my proyect
>
> --
> You
Im starting a social network for my school and i need to show the coments
of my post without recharging the whole and for other things in my proyect
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
Not surprisingly, someone (well, more than one someone, actually) has
already done this:
https://realpython.com/blog/python/django-and-ajax-form-submissions/
or
http://stackoverflow.com/questions/14099038/an-easy-way-to-submit-django-forms-using-ajax-jquery
or
https://aliteralmind.wordpress.com
A JS library like Jquery or plain javascript.
Listen to event, intercept & cancel them, make the query to django,
insert or remove the appropriate item.
2016-07-13 20:25 GMT+02:00 J Singh :
> I want functionality such as add/delete line items to an order , do not want
> a
I want functionality such as add/delete line items to an order , do not
want a form resubmit every time an item is added . What is the best way to
do this without having to use angular/ react etc
--
You received this message because you are subscribed to the Google Groups
"Django users"
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,
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
How to retrive Data from Db in Django to Template using Ajax? I am new to
Django i need to retrive the data WITHOUT PAGE REFRESH USING AJAX please
help me with that..
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
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
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
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 code and the server doesn't do
anything. How do i correct this?
--
You received this message because you are
Hi everyone!
Here's my problem. I seem to have made a rookie mistake that is preventing
Google for indexing my site and I'm trying to figure out how to fix that.
I made a Django-powered site that dynamically builds pages by stitching
together information from my database with a bunch of
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
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
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 class that wants to respond to
ajax request.
The admins of my site need to be able to edit/create html text content
through Django admin, but rather than offer a standard WYSIWYG editor
I'm thinking I'd like to use an interface with which the admins would
directly and transparently build the resulting html. I'll try to
explain what I have in
Hi,
This might sound a bit like a jquery question. But since I'm pretty
sure that my jquery code is okay, it seems for me that my problem has
to do with django.
I try to reload a form and the head of the page with a jquery ajax
call:
$("#id_is_active").change(function(){
url
http://lethain.com/entry/2007/dec/01/using-jquery-django-autocomplete-fields/
On Feb 5, 2:19 am, Rohan Shah <roha...@gmail.com> wrote:
> Any good documentation available on how to implement AJAX with Django ?
>
> --
> Thanks and Reg
On Fri, Feb 5, 2010 at 2:49 AM, Rohan Shah <roha...@gmail.com> 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: muni
within your projects.
_
@jonathanorlando
Linux user # 458151
Geek Emprendedor !!
Cucuta / Norte de Santander / Colombia
2010/2/4 Rohan Shah <roha...@gmail.com>
> Any good documentation available on how to implement AJAX with Django ?
>
> --
> Thanks and Reg
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 <gonzalo...@gmail.com>
--
You received this message because you are subscribed to the Google Groups
"Djang
Any good documentation available on how to implement AJAX with Django ?
--
Thanks and Regards,
Rohan Shah
++[>>++>+++>+<<<<-]
>++. >+++.---. ---.. >++. <<+. >--.
---.+++.
--
You receiv
> you need to install.
>
> As Anton says, you didn't need any special library to use ajax in django,
> but if you need an "easy-way" try http://dajaxproject.com/ it may help
> you.
wow! looks real good.
--
regards
Kenneth Gonsalves
Senior Project
On Mon, 2009-10-19 at 03:41 -0700, neetu wrote:
> Thanks a lot.
>
> Can u tell me how can i make ajax connections.
>
http://lmgtfy.com/?q=make+ajax+request
Cheers
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
nothing special
> > you need to install.
>
> As Anton says, you didn't need any special library to use ajax in django,
> but if you need an "easy-way" tryhttp://dajaxproject.com/ it may help you.
>
> Greetings
>
> -- jorge[at]t
Thanks a lot.
Can u tell me how can i make ajax connections.
On Oct 19, 3:24 pm, Antoni Aloy wrote:
> 2009/10/19 neetu :
>
> > Hi All
>
> > I want to use ajax for my website.I am new to ajax.The backend code
> > for my website uses django.
> > I
>
>
> To use ajax you need to be able to make AJAX connections through
> javascript and make your view.py code to return the right format
> depending on the request (html, xml, json). So theres nothing special
> you need to install.
>
As Anton says, you didn't need any specia
2009/10/19 neetu :
>
> Hi All
>
> I want to use ajax for my website.I am new to ajax.The backend code
> for my website uses django.
> I want to know the what are the things i need to install before using
> ajax for my website.should i download and install
Hi All
I want to use ajax for my website.I am new to ajax.The backend code
for my website uses django.
I want to know the what are the things i need to install before using
ajax for my website.should i download and install ajaxcontroltoolkit.
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
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
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
Hey,
Why Django doesn't provide integration with Ajax out of the box (like
Rails and Wicket)?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
@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
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
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
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
If everything is going to be hosted on different servers etc. I think you
might want to consider using a web service or some sort SOAP or REST. It
would provide a common interface to your data that once implemented would be
easy to use in many places.
This really doesn't have much to do with
Hi
AJAX doesn't care what tech is serving the data as long as the format
is what it expects (JSON). Doing cross domain AJAX calls it a bit more
tricky, but you can do it with JSONP. It's not hard to setup when you
have control of the json output. I know jQuery has it, but try to
google it, there
Hi:
We are a non-profit charity organization having 25+ websites and want
to maintain a centralized database for the various events happening at
different places. The database (MySql) has been implemented and we use
the django framework admin module to communicate with the database.
Our
a...@gmail.com> 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 &
Thank you very much for the support. But any tutorial for jquery would
b preferable
On May 15, 2:52 pm, jai <jayapa...@gmail.com> wrote:
> I have document in my blog about Ajax based form submission in
> django. pls gone through this
> urlhttp://jayapal-d.blogspot.com/2009
Thank you very much for the support.
On May 15, 2:52 pm, jai <jayapa...@gmail.com> 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
&g
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 <margierogin...@yahoo.com> wrote:
> I found a very good tutorial
> athttp:/
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 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
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
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
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
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 () {
&g
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
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 () {
$("#sortme"
is would be to add a custom header to the
> > request that read 'accept-content-type='text/javascript' and then
> > work off that but
> >
> > I'm of course not happy with my solution so am interested in seeing
> > what other people feed back...
> >
>
ms
> the prime way to do this would be to add a custom header to the
> request that read 'accept-content-type='text/javascript' and then
> work off that but
>
> I'm of course not happy with my solution so am interested in seeing
> what other people feed back...
>
> Vance
>
>
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I've started using Ajax in my Django sites. I'm using Jquery (and I
> love it!), but here it doesn't really matter which JS library you use,
> I'd just like to know your opinions on the best way to go to handle it
> on the serv
Hi all,
I've started using Ajax in my Django sites. I'm using Jquery (and I
love it!), but here it doesn't really matter which JS library you use,
I'd just like to know your opinions on the best way to go to handle it
on the server side.
I'm gonna tell you how I do it, then I'd really
I think this discussion has reached its logical end as it often does.
With that I will end it the way all the other discussions have ended
^_^.
Write the integration framework for the Javascript library you like
and get community support for it.
If that support gets enough steam it will be
> I like jQuery. You like mochikit. Others like YUI, or Prototype, or
> Dojo. Who's right? Everybody. Nobody. It depends.
I probably shouldn't have brought mochikit into it:) I like it, true
enough, but I'd actually be happy to abandon it if there was some
strong benefit like community
On 4/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> pcad, there's some good points there, and maybe many of us could share
> more code showing how we've integrated whatever JS toolkit with
> Django. But I like the agnostic stand. They give the tools to connect
> easily. HOW you connect
pcad, there's some good points there, and maybe many of us could share
more code showing how we've integrated whatever JS toolkit with
Django. But I like the agnostic stand. They give the tools to connect
easily. HOW you connect is up to you.
I like jQuery. You like mochikit. Others like YUI, or
> thread when I first came to Django. In hindsight, it was pure
> inability to write the javascript myself, and reluctance to properly
> learn javascript. In the end I've seen that writing javascript
> manually results in much cleaner html output, using less code and it
> sometimes just performs
4/11/07, Adam Findley <[EMAIL PROTECTED]> wrote:
>
>
>
> > I like the idea that Django is AJAX implementation agnostic the same way
> > it is agnostic to the database you prefer to back your project (if any),
> > but, is there any work being done to create something in c
On Apr 10, 11:39 am, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote:
> On Tue, 2007-04-10 at 18:11 +, Steve Bergman wrote:
> > But Django definitely has a preferred ORM and a preferred templating
> > engine. Why be so set on complete agnosticism when it comes to
> > javascript?
>
> I agree. I
On 4/11/07, Adam Findley <[EMAIL PROTECTED]> wrote:
>
> I like the idea that Django is AJAX implementation agnostic the same way
> it is agnostic to the database you prefer to back your project (if any),
> but, is there any work being done to create something in contrib to
&g
On 10-Apr-07, at 11:41 PM, Steve Bergman wrote:
> But Django definitely has a preferred ORM and a preferred templating
> engine. Why be so set on complete agnosticism when it comes to
> javascript?
then, to complete your analogy, they would have to write and maintain
their own javascript
2007/4/10, James Bennett <[EMAIL PROTECTED]>:
>
>
> Again, it's not terribly hard to write views which return JSON or XML;
> integration with form widgets, etc. requires binding to a specific JS
> library or rolling our own, and that's not going to happen.
>
With Django is terribly easy to do
On 4/10/07, Steve Bergman <[EMAIL PROTECTED]> wrote:
> Even after the developer decides upon a javascript library to use,
> there is still a lot of boilerplate involved to do common things like
> populating one widget based upon what the user selects in another
> widget. I often need to
On Tue, 2007-04-10 at 18:11 +, Steve Bergman wrote:
> But Django definitely has a preferred ORM and a preferred templating
> engine. Why be so set on complete agnosticism when it comes to
> javascript?
>
I agree. I don't have time to weigh the benefits of various libraries.
As someone
On 4/10/07, Steve Bergman <[EMAIL PROTECTED]> wrote:
> And, OK, I'll fess up and say that I want to think in python and not
> have to switch gears back and forth between python and javascript. ;-)
To me, for all the other arguments people make, this is the real
issue: wanting to avoid writing
To me, that does not seem very DRY.
Even after the developer decides upon a javascript library to use,
there is still a lot of boilerplate involved to do common things like
populating one widget based upon what the user selects in another
widget. I often need to populate one widget based upon
continue to make it easy
> to receive AJAX requests and send serialized XML or JSON data in
> response.
>
>
I like the idea that Django is AJAX implementation agnostic the same way
it is agnostic to the database you prefer to back your project (if any),
but, is there any work being
On 4/10/07, erdong ma <[EMAIL PROTECTED]> wrote:
> I do not know if a decision has been made on the ajax framework in 1.0.
Django will not bundle any JavaScript library or provide integration
hooks with any specific library; Django will continue to make it easy
to receive AJAX requests and send
Hi Erdong,
If you do a simple search for "AJAX" on this group you'll find the answer
you're looking for, in brief: Django **will not** advocate for a specific
ajax framework/library it provides useful tools to ease your development i.e.
Serializers but as jacob sais a few days ago: "why should you
I do not know if a decision has been made on the ajax framework in 1.0.
Anyone knows some message about this.
By the way, how about the Eclipse + pydev comparing with the Wing IDE?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
su.edu/iua1/ajax-django-sandbox.htm
cheers,Istvan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from
and with MochiKit
>
> http://www.personal.psu.edu/iua1/ajax-django-sandbox.htm
>
> cheers,
>
> Istvan
>
>
> >
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
81 matches
Mail list logo