I want to include a webpage into another, but preferably without an iframe, since I hate the scrollbars in the middle of the page.
Lets say I want to include A as a part of B
I tried doing it by creating a div on B where I wanted to include A then loading the page using JQuery like this:
$(document).ready(function() {
$('#inv_view').html('loading...').load("{% url 'invoice.invoice.view' invoice.ID %}");
});
My problem is that A uses its own set of CSS styles and these override the styles on B when A is loaded. How can i prevent this?
Again, I know it is easily done with an iframe, but... Meh