Here you go, a fully working AJAX "Hello World" example in Django:
http://www.dajaxproject.com/dajaxice/
I use both Dajax and Dajaxice for a few projects of mine, check out my
profile site for a fully working AJAX website made in Django:
http://iamkevin.ca/
Django even has specific form widget
On Friday, 13 April 2012 17:04:49 UTC+1, Eli_West wrote:
>
> Thanks, I tried to stay clear of posting code because I've tried maybe
> 20 different ways and nothing seems to work. I have used the {% url %}
> tag and yesterday competed - a 'ajax_user_search' tut using django Q
> still no luck. T
Thanks. I found another example that used get() and didn't seem to
work for me either:
http://mitchfournier.com/tag/ajax/
I guess I want an example that is simple as possible so I can try and
find where the issue it occuring. I'll try your example later today.
On Apr 13, 4:12 am, Joey Espinosa
Thanks, I tried to stay clear of posting code because I've tried maybe
20 different ways and nothing seems to work. I have used the {% url %}
tag and yesterday competed - a 'ajax_user_search' tut using django Q
still no luck. This was the load call:
$( document ).ready( function() {
$( '#searc
Btw, disregard what I said about mixing URL and CSS selectors. I forgot
that load() can do that (I usually use ajax() or get()/post(), neither of
which supports that). MY BAD!
--
Joey Espinosa
Software Engineer
http://about.me/joelinux
On Apr 13, 2012 6:05 AM, "Joey Espinosa" wrote:
> Daniel is
Daniel is right. The only way your code will work is if you've set up your
argument to load() to be caught by urls.py.
Also, in your case, it seems like your argument to load() is a mix of URL
and CSS selector... Make sure you're using a URL there.
Check out my blog for a very basic tutorial on g
On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>
> I've been attempting the most basic ajax call (.load() ) through
> django for over a month now - each time trying a different method or
> tutorial none with success. Can someone post a working paradigm for
> whatever django csrf, fir
I've been attempting the most basic ajax call (.load() ) through
django for over a month now - each time trying a different method or
tutorial none with success. Can someone post a working paradigm for
whatever django csrf, firefox, ect. workaround they use?
I can get jquery .load() to load cont
8 matches
Mail list logo