Re: Accessing view from javascript

2015-12-17 Thread Galia Ladiray
I don't exactly understand what you are trying to do (what are you switching on? must you do this in JavaScript?) But in order to load server content you can use either JQuery Get method https://api.jquery.com/jquery.get/ Where you will create an empty div in your HTML, and put the server

Accessing view from javascript

2015-12-17 Thread Gary Roach
Hi all I am new to this and am really struggling with what should be a simple problem. I have a main.html that has javascript code. There is a switch statement. From the first case statement, I wish to load a template that is the child of main.html. I have a /home/view.py with: def