I want to load full pages somewhere into DOM and keep them inside its own "containers" for showing and hiding.
So far i tried:
1) Loading page into div but some things like background image and css are getting
out of the "container" even if its hidden like this:
$("#page" + index).hide().load(url);
2) If i will load it into :
$("#page" + index).html('<object data="' + url + '">');
it keeps page inside of container but when i use jQuery show/hide it reloads every time.
I haven't tried iframes but with the framebreakers i guess some page would take over the screen.
Do you have any idea how to do it?
Does the url you're loading contain an extra set of html, head or body tags? Html documents should only contain one set of these.