Is content from AJAX call added to Django context variable

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-05-06T10:57:34Z Indexed on 2010/05/06 11:18 UTC
Read the original article Hit count: 169

Filed under:
|

Hi,

I am using the JQuery load function to load part of my page. Can I access the variables from that page in the page that loads it. e.g.

  • Page A uses JQuery load function to load B

  • Page B loads and sets a variable in context called pageB_var which holds a django object

  • Page A can then access this variable by doing {{pageB_var}} since it was added to the context

If not what is the best way of doing this?

Thanks

© Stack Overflow or respective owner

Related posts about django

Related posts about django-context