For the life of me, I can't find the answer to this question (yes I've searched and searched and googled and binged)
When I send a jquery $.ajax() request to load an html page, does it load the raw html with the header declaration and all if I don't provide a context?
I want to load any necessary stylesheets that are required of a page that I load in ajax. I figure that I can parse the header, look for stylesheet declarations and append the declarations to my DOM, but not if the only contents I receive are the HTML Body.
Can someone please point me to a simple way to ensure that external style sheets/scripts are loaded and applied to contents loaded through $.ajax()?
I am using the simple $.ajax({url:someurl, success:function(html) {$("#holder").html(html)});
But then I am unsure if the header will be added to the "holder" div so I can parse it using jquery.
I know this is simple, but I figured it would be quicker to ask than to keep trying to figure out the right search terms. I would gladly take an explanation or even just a url to a tutorial that would explain what I want to do better. Thanks in advance for your time and patience.
-jase