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. This was the load call: > > $( document ).ready( function() { > $( '#searchSubmit' ).click( function() { > q = $( '#q' ).val(); > $( '#results' ).html( ' ' ).load( > '{% url userbase_user_search %}?q=' + q ); > }); > }); > > Upon setting everything up and clicking the tag, nothing happens as > usual. I'm going to try the tut posted below with high hopes - and I > am considering trying 'djaxice' >
> OK. So, next question: where is that Javascript? In which file? Is it inside the HTML template that is parsed by Django, or is it in a separate .js file that is served by the static server? The second won't work, because the `url` tag will not be resolved to the actual URL. In either case, have a look at the rendered output of that JS to see that it has the URL you expect. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/01xuMfbquQwJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.