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
0
votes
1 answer

Retrieving Currently Logged In User From Dajax Function

I'm currently using a dajaxice call in a template, and I'd like to be able to retrieve the currently logged in user within the python function my dajax calls. I know that the dajax passes a 'request' parameter to the python function which contains…
xyzjace
  • 432
  • 1
  • 5
  • 16
0
votes
1 answer

In Dajaxice (Django), how do you specify a GET vs a POST?

It seems in Dajaxice that everything is a POST. I've read that it's not good practice to mix up GET and POST and I think I know when to use which one. So how do I specify a GET request in Dajaxice?
hobbes3
  • 28,078
  • 24
  • 87
  • 116
0
votes
1 answer

Do I need Dajaxice fully configured to use Dajax in Django?

This may be a silly question, but do I need Dajaxice fully configured to run Dajax? I want to use Dajax because I would need some heavy jQuery DOM manipulation. The Dajax installation documentation says that Dajaxice needs to be installed to run…
hobbes3
  • 28,078
  • 24
  • 87
  • 116
-1
votes
2 answers

Dajax function unable to call another function

I have a Song model with a votes attribute. I have a Vote as Favourite button displayed below each Song object. I want when a user clicks on the Vote as Favourite button the votes attribute associated with that Song object should increment by 1 and…
Unknown Coder
  • 783
  • 3
  • 12
  • 23
-1
votes
1 answer

Getting object value for AJAX call using Dajaxice

I have a Song model with a votes attribute. I have a Vote as Favourite button displayed below each Song object. I want when a user clicks on the Vote as Favourite button the votes attribute associated with that Song object should increment by 1 and…
Unknown Coder
  • 783
  • 3
  • 12
  • 23
-1
votes
2 answers

how to concatenate two string in `onkeyup` property in template in django

I want to use a request.session variable in my template (for example like . operator in php )but this doesn't work: