Questions tagged [dajaxice]

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.

111 questions
6
votes
2 answers

Django Dajax vs Dajaxice

This may be a very silly question but I'm looking at implementing ajax in my django project and the big plugin seems to be dajax/dajaxice however I can't for the life of me distinguish between the two. Could someone clear this up a little for me?…
apardes
  • 4,272
  • 7
  • 40
  • 66
6
votes
2 answers

how to send file data using Dajaxice?

I am using ajax for my website. I have successfully used jQuery.ajax() to asynchronously upload file to server. I am using Dajax and Dajaxice therefore I plan to use these application for file upload as well. I tried this example. It is working…
Aryaveer
  • 943
  • 1
  • 12
  • 27
6
votes
1 answer

Dajaxice. Cannot call method '...' of undefined. Again

I'm stuck in trying to create a simplest application with dajaxice. I'n read all topics about this problem here and not only here, rewrite all code many times, but still do not see what the problem is. the most interesting that, these examples are…
kvadrat
  • 135
  • 2
  • 11
4
votes
1 answer

django/python TEMPLATE_LOADER error for dajaxice

I want to use django / djanxice and have set it up in setup.py, url.py, etc... but when I run the server, error occurs. /Library/Python/2.7/site-packages/django/template/loader.py:113: UserWarning: Your TEMPLATE_LOADERS setting includes…
user1725454
  • 51
  • 1
  • 3
4
votes
1 answer

Dajaxice javascript core file not getting parsed

I've been looking everywhere for answer to my questions last few hours and couldn't find anything, so i decided to ask. I followed installation instruction in docs of Dajaxice, got everything setup exacly the same, but unfortunetely my Dajax.core.js…
4
votes
1 answer

Django AJAX. Is dajax still ok or better move to jQuery right away (2012 revival)?

I have seen few questions about the topic but all of them kinda old. I just implemented my first dajaxice environment (developing using chrome) but I still get random "something goes wrong" with Firefox an IE. Indeed time to time also with Chrome. I…
mariotti
  • 410
  • 1
  • 5
  • 23
3
votes
0 answers

How to upload a file using Dajax

I am trying to upload a file using a form with Dajax. I use serializeObject to serialize data with JavaScript. However, an input with a file type is not serialized before it sends to the server. Is there any way to upload a file using Dajax?
Ryan Rho
  • 515
  • 5
  • 18
3
votes
2 answers

How can I cancel Ajax calls made using Dajaxice?

I've been using Dajaxice with my Django based site as it has been very convenient. However, I sometimes need to cancel the Ajax requests and I don't know how to do it when the requests are wrapped with Dajaxice. The documentation for Dajaxice is…
Lyndsey Ferguson
  • 5,306
  • 1
  • 29
  • 46
3
votes
1 answer

AJAX call to load 10 more items doesn't work as expected

I'm trying to load 10 items each time the load more button is clicked. I initially send the first 10 items and use dajaxice to load more 10 items each time the button is pressed. Here is my view def dj(request, slug): dj =…
Yin Yang
  • 1,776
  • 3
  • 26
  • 48
3
votes
2 answers

django dajaxice javascript callback with additional parameters

How do I go about adding extra parameters on the call back function? eg. function callback(data){ alert(data.message); } And you would call it by Dajaxice.examples.args_example(callback, {'text':$('#text').val()} what if I want to add an extra…
James Lin
  • 25,028
  • 36
  • 133
  • 233
3
votes
1 answer

Dajaxice function not callable error after initial setup

I just set up Django and Dajaxice and I am having trouble getting it to work after closely checking the documentation for both Django set up and Dajaxice. After some research here at stack overflow the only thing I found was to make sure that I had…
drdre
  • 31
  • 2
3
votes
2 answers

dajaxice: passing an argument to a python function

Using Dajaxice I want to pass a parameter to a python function. In the html file I have the following statement and in my ajax.ps file I have the…
user695652
  • 4,105
  • 7
  • 40
  • 58
3
votes
3 answers

Making jquery plugins work after an Ajax call

It's gonna be a long post, but I really had enough of trying to fix this. I'm really looking for some help solving my case. First: fade.js: $(document).ready(function(){ $(".gallery ul li img.a").fadeTo("slow", 0.5); // This sets the opacity of the…
user1301404
2
votes
2 answers

Dajaxice: Something went wrong.

I'm using PyCharm (IDE for DJango Framework), it seem to work but I have this error error: [Errno 10053] An established connection was aborted by the software in your host machine When I look at the console when I clicked the button for Dajaxice…
Sachi Tekina
  • 1,800
  • 5
  • 28
  • 50
2
votes
2 answers

django form.is_valid() always returns false

My is valid function in my view always seems to be returning false even though the post seems to be sending the right data (I think). I'm pretty new to django and python and I'm using the Django Docs as a guide. I am also trying to implement my form…
Abhinav Nair
  • 116
  • 10
1
2 3 4 5 6 7 8