As I get full html code from python using render_template,
I want to reload full html code on current page.
I know I could use form
method, and I know to use $('#A').html(response)
form
method : I do not use submit button,, so this is not what i am looking for.$('#A').html(response)
: This adds the code from where id A. When using this code my full html code duplicate inside current page, not overwrapping
So, I need how to reload my current page with responed full html code
I also tried
$.post('/cccc',{user_id: id}, function(response){
window.location.replace(html(response));
}
);
But this also occur html not defined
errors.
Can someone give me some help?