Questions tagged [django-ajax-selects]

django-ajax-selects is a module for Django which enables editing of ForeignKey, ManyToMany and CharField using jQuery UI Autocomplete.

django-ajax-selects is a module for Django which enables editing of ForeignKey, ManyToMany and CharField using jQuery UI Autocomplete

When user types a search term into the text field an ajax request is sent to the server and a dropdown menu is populated with results. User selects by clicking or using arrow keys. Selected result displays in the "deck" area directly below the input field. User can click trashcan icon to remove a selected item

Features:

  • Django 1.2+
  • Optional bootstrap mode allows easy installation by automatic inclusion of jQueryUI from the googleapis CDN
  • Compatible with staticfiles, appmedia, django-compressor etc
  • Popup to add a new item is supported
  • Admin inlines now supported
  • Ajax Selects works in the admin and also in public facing forms.
  • Rich formatting can be easily defined for the dropdown display and the selected "deck" display.
  • Templates and CSS are fully customizable
  • JQuery triggers enable you to add javascript to respond when items are added or removed, so other interface elements on the page can react
  • Default (but customizable) security prevents griefers from pilfering your data via JSON requests

Projects website:

67 questions
0
votes
2 answers

Formatting of select choices is wrong - JQuery

My second select dropdown is populating with each letter of the data I'm returning from my server and not each item itself. Here's my JQuery; var selected_table = $("#id_TableName option:selected").text(); …
Mark Corrigan
  • 544
  • 2
  • 11
  • 29
0
votes
1 answer

How do I upgrade django-ajax-selects

I had django-ajax-selects installed a long time ago which was version 1.2.4. It worked great. It seemed to have some bug with ManyToMany fields which I'm trying to implement now, so I upgraded to 1.3.3. Now nothing is working. According to the…
rsp
  • 811
  • 2
  • 12
  • 32
0
votes
2 answers

Django to save the form details in database and retrieve back using ajax

I want to save details in database and retrieve back to same page using Ajax. I added the code for your reference. Kindly share your ideas. models.py class Personal(models.Model): user=models.ForeignKey(User) name=models.CharField() dob…
user
  • 675
  • 2
  • 10
  • 19
0
votes
1 answer

Django ajax passing variable to the views

I'm new with Django + Ajax. My Problem is I can't get the value from my ajax POST request. I'm using the jquery post. My task is to sort the draggable list item. The drag and drop is not the problem. Getting the values from POST request is the…
justin
  • 1,659
  • 5
  • 21
  • 25
-1
votes
1 answer

How to handle too many elements in django-ajax-select admin panel?

I am using the django-ajax-select library to display a many to many relationship in the admin panel. The problem is that I have too many objects linked and it is making super long page. Do you know if is there any way I can customize that element so…
-1
votes
1 answer

how to get foreign key fields using reverse lookup in python/django ajax request (json)

---models.py--- class Products(models.Model): category = models.ForeignKey(Category) name= models.CharField(max_length=120, unique=True) slug = models.SlugField(unique = True) price = models.IntegerField(default=100) class…
Harish
  • 425
  • 7
  • 22
-2
votes
1 answer

Instant search in django application

I am using django in windows I am giving a text field to search by name of category, Text box should give me name result like Google instant By selecting name, it should give me the details of category in the same page itself. Any body can help me…
1 2 3 4
5