I have two html pages with different json context ,I have templates for 
both pages which contains a script which on loading the pages individually 
loads the context into the list.Now i want to develop a toggle button which 
onclicking changes the context ,is there any way i can do this with ajax i 
am using django framework.can anybody please help me with this.

My views are like this

Class Myview(Baseclass):
   def template():
      return template
   def jsonContext():
     return .content()
   def context():
      return {}

My templates are like this:
{extend 'base.html'}
{{list.render}}

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e476a402-0759-4222-8279-b5712b46333d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to