Re: Django +Ajax + jQuery problem

2020-07-03 Thread Andréas Kühne
Hi, The reason for this is that you are replacing the buttons when you update the answer. The event listener that you attached is on the first one and not the second one. You can solve this in 2 ways: 1. Reregister the event listener when you have loaded the answer again. 2. Use a different way t

Django +Ajax + jQuery problem

2020-07-02 Thread Jan Gregorczyk
My problem is that site registers only the first click on .upvote or .downvote element and ignores next ones. {% extends 'base.html' %} {% load votes_exists %} {% block title %}{{question.title|truncatechars:52}}{% endblock %} {% block content %} {{question.title}} {{question.content}} {% for answe

Re: jquery problem

2011-01-17 Thread Tony Lambropoulos
When I say I am only using the table-formset page, I mean thats the only template. I am using the js file, jquery.formset.js it comes with. Sorry about my vagueness. On Mon, Jan 17, 2011 at 8:14 PM, Tony Lambropoulos wrote: > This is the project I have started with: > http://code.google.com/p/d

Re: jquery problem

2011-01-17 Thread Tony Lambropoulos
This is the project I have started with: http://code.google.com/p/django-dynamic-formset/ I've deleted everything except the table-formset page, thats the only one I am using. This is how I have my scripts entered into the template file. ... This is the exact same format as the original jquery.for

Re: jquery problem

2011-01-17 Thread Vovk Donets
2011/1/17 Tony > I did what you've recommended, I put in the jquery.js file that I used > while testing outside of django. There was still no success. Thus > far I cant get any other plugin to work beside the one it dynamic > formset one I started with. I even deleted that file temporarily to

Re: jquery problem

2011-01-17 Thread Tony
I did what you've recommended, I put in the jquery.js file that I used while testing outside of django. There was still no success. Thus far I cant get any other plugin to work beside the one it dynamic formset one I started with. I even deleted that file temporarily to see if it was "blocking"

Re: jquery problem

2011-01-17 Thread sureronald
Confirm the plugin's jquery version requirement. Maybe the plugin requires another jquery version On Jan 17, 8:48 am, Tony Lambropoulos wrote: > Prashanth, > This has to do with django because they work outside of django. > > On Mon, Jan 17, 2011 at 6:12 AM, Prashanth wrote: > > Hi Tony, > > > O

Re: jquery problem

2011-01-16 Thread Tony Lambropoulos
Prashanth, This has to do with django because they work outside of django. On Mon, Jan 17, 2011 at 6:12 AM, Prashanth wrote: > Hi Tony, > > On Mon, Jan 17, 2011 at 8:57 AM, Tony wrote: > >> Unfortunately, I can't get any other plugins to work that I download. No >> other jquery >> plugins see

Re: jquery problem

2011-01-16 Thread Prashanth
Hi Tony, On Mon, Jan 17, 2011 at 8:57 AM, Tony wrote: > Unfortunately, I can't get any other plugins to work that I download. No > other jquery > plugins seem to work and Im pretty sure I have the directory paths > right and everything. Very lame, How would someone know why something dint w

jquery problem

2011-01-16 Thread Tony
I am using a jquery project for forms that someone else created to give myself a jump start on what Im trying to do. Unfortunately, I can't get any other plugins to work that I download. No other jquery plugins seem to work and Im pretty sure I have the directory paths right and everything. I ha