Re: how to render data coming from server to template using ajax!

2013-02-10 Thread mulianto
hi,

the basic is the same with full html site, except in ajax you only render part 
of your html output.

so in ajax you can use ajax call the target url, and the output from the html 
output is display in the div specified.

use jquery or prototype for easy manipulation.

hope help

Sent from my iPhone

On 11 Feb 2013, at 07:04, Amit  wrote:

> Hi,
> 
> Javascript does not understand django template syntax. In your case you can 
> return a template rendered with django, and replace the html.
> 
> Thannks,
> 
> On Sunday, February 10, 2013 3:12:47 PM UTC+5:30, doniyor wrote:
> hey guys, i am stuck in this problem. i posted the problem on 
> stackoverflow.com also, 
> http://stackoverflow.com/questions/14787772/sorting-queryset-of-search-result-and-render-back-thru-ajax
> 
> but till now no one could answer there, so i am asking here again. anyone can 
> help me? :( 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: how to render data coming from server to template using ajax!

2013-02-10 Thread Amit
Hi,

Javascript does not understand django template syntax. In your case you can 
return a template rendered with django, and replace the html.

Thannks,

On Sunday, February 10, 2013 3:12:47 PM UTC+5:30, doniyor wrote:
>
> hey guys, i am stuck in this problem. i posted the problem on 
> stackoverflow.com also, 
> http://stackoverflow.com/questions/14787772/sorting-queryset-of-search-result-and-render-back-thru-ajax
>
> but till now no one could answer there, so i am asking here again. anyone 
> can help me? :( 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




how to render data coming from server to template using ajax!

2013-02-10 Thread doniyor
hey guys, i am stuck in this problem. i posted the problem on 
stackoverflow.com 
also, 
http://stackoverflow.com/questions/14787772/sorting-queryset-of-search-result-and-render-back-thru-ajax

but till now no one could answer there, so i am asking here again. anyone 
can help me? :( 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.