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
Where you will create an empty div in your HTML, and put the server response in this div (with JQuery html method)
Or simply have two django views on different URLs, and then in your JS you will load the required page
But again I'm not sure what is your use case, why do you need to have your switch case in JS and not in the view ....