I have a problem with web.py. Basically the user clicks a button, which makes a POST request to the server. The POST request returns “render.edit()”, which is short hand for rendering the “edit” template. However, since I’m making the POST request via jQuery, the HTML of the page is simply in the callback function and doesn’t get displayed. Is there a way for me to change the HTML of the entire page?
Thanks!
Don’t use Ajax to do this. If posting data to the server should result in a new page being displayed, just use the traditional model. You gain nothing by using Ajax in this case.