dajaxice is a JS-framework agnostic that focuses on decoupling the presentation logic from the server-side logic. Its main goal is to trivialize the asynchronous communication between the django server side code and your js code.
Questions tagged [dajaxice]
111 questions
1
vote
0 answers
Dajax/Dajaxice the Js call returns "Cannot read property 'whatever' of undefined"
I installed and followed all the procedures to setup a basic example using Dajax and Dajaxice inside Django.
The js sources are correctly included and the Dajax and Dajaxice objects exist (I can test within the browser console). I've looked around…

Leonardo
- 4,046
- 5
- 44
- 85
1
vote
1 answer
Dajaxice 0.5.1 - Can't seem to make the tutorial work
I've checked over my stuff repeatedly and I cannot find the issue.
Here's the layout of my…

Fuscus
- 11
- 1
1
vote
1 answer
How to call a function after dajax success?
here is my call:
prev
How can I call a javascript function, after the ajax call success?

amiry jd
- 27,021
- 30
- 116
- 215
1
vote
1 answer
How to get field from json object in template?
I use Dajaxice library with django.
These are my ajax.py methods:
def get_by_date_queryset():
#return model.objects.latest('created_on')
return Article.objects.all().order_by('created_on')
def example1(request):
""" Handling sorting requests…

Feanor
- 3,568
- 5
- 29
- 49
1
vote
2 answers
Cannot quite get my head around django mixins
I recently had a django question - and one of the answers left me stumped:
https://stackoverflow.com/a/10608687/1061426
I've read the django doco, but cannot quite work out how mixins are relevant to what was asked, or what the answer is referring…

bharal
- 15,461
- 36
- 117
- 195
1
vote
1 answer
How do I call Dajax / Dajaxice functions from my Django template
I am writing a simple Django application and wish to add ajax paging using Dajax / Dajaxice. I have started by trying to implement the simple paging example from the Dajax website (http://dajaxproject.com/pagination/) - but haven't managed to get…

tominwood
- 83
- 1
- 2
- 5
0
votes
1 answer
Form Validation using Dajax in Django
I am working on form validation with AJAX using Dajax in a Django project. I would like to know whether there is an efficiently way to display validation errors. For now, I return errors in the server-side when AJAX is called, and the client-side…

Ryan Rho
- 515
- 5
- 18
0
votes
1 answer
HttpResponseRedirect with Dajaxice
I have a Dajaxice view that checks to see if there is a particular item in a shopping cart before adding a new one. In my line of work, certain items require certain prerequisites, and it's really hard to process multiple items with the same…

topher.bartos
- 1
- 1
0
votes
1 answer
Django Keep different session in different tabs
I have django app (1.6) where I want to be able open two tabs with different sessions.
But now when I open first tab with form to write a post, and on second tab I switch to different tab I also have the same session in this tab, because I refresh…

Kai
- 553
- 3
- 7
- 15
0
votes
1 answer
dajaxice: something went wrong
I have a ul list and a button:
0
votes
1 answer
Use Dajax to stream log messages
I am trying to create a logger window for my website that streams python logger messages to a javascript popup window. I've gotten to the point where if I close the window and reopen it new messages will be displayed, but I want to write some…

kdubs
- 936
- 3
- 22
- 45
0
votes
1 answer
How to populate one dropdown from the other in django dynamically using AJAX/DAJAX/DAJAXICE/Simple Javascript?
I have searched enough of the examples but couldn't get the satisfactory result. Please explain with all the necessary code. I am very poor at AJAX. I tried to use DAJAXICE in my code and got little success but didn't work with passing parameters.…

atitpatel
- 3,104
- 1
- 24
- 34
0
votes
1 answer
$.ajax() with django fails
I'm trying to get a static file (a js script) from django (development server) using jquery ajax but something is preventing the $.ajax promise to resolve.
Here's my ajax call :
$.when(
$.ajax({dataType: "script", cache: true, url:…

PhilipGarnero
- 2,399
- 4
- 17
- 24
0
votes
1 answer
How to activate django form.media javascript on an ajax loaded form?
I have a little issue here :
I've got a form containing some media due to its widgets.
Everything works as expected when the form is part of the page but if I want to load that form using an ajax call, in a modal for example, even though the js…

PhilipGarnero
- 2,399
- 4
- 17
- 24
0
votes
1 answer
XMLHttpRequest emits onreadystatechange but not onload event (using Dajaxice)
I use this code to send a request for an audio file:
request = new XMLHttpRequest()
request.open("get", 'http://localhost:8000'+url, true)
request.responseType = "arraybuffer"
request.onProgress = ()->
console.log…

arthur.sw
- 11,052
- 9
- 47
- 104