I'm getting in that specific url, means test_ajax1 view. I test this. It do
the render_to response. I put a print and a raw_input() in that specific
view, and it fire up, on that click event. I think the problem is when that
#test_div is updated.

2009/11/4 Tom Evans <tevans...@googlemail.com>

> On Wed, Nov 4, 2009 at 9:50 AM, NMarcu <marcu.nico...@gmail.com> wrote:
>
>>
>> Hello all,
>>
>>   I got an error, and I don't know how to pass on it. I got this
>> error when I try to use ajax from django templates.
>> I use this, from jquery:
>> $('#create-user').click(function() {
>>                $( '#test_div' ).load( "{% url test_ajax %}");
>>        });
>>
>>
> '{% url test_ajax %}' will only expand to a URL if that file is parsed by
> django's template engine. Since the url is not expanded, I'm guessing that
> it isn't - is it in a standalone javascript file?
>
> The other code posted is not relevant, you're not getting past the first
> step here.
>
> Cheers
>
> Tom
>
>
> >
>


-- 
All the best,

Nicolae MARCU

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to