Hello, it's nice to see the new forum! (Note: the post editor is slow as a dog when Firebug is enabled :)
Anyway, I'm sure there's a simple answer to my conundrum. I'm trying to access the contents of a style tag in an ajax loaded document. Within the primary document, this (yaml inspired psuedocode) works just dandy:
html index.html
head
style body{color:red}
script jquery
script console.info($("style").html(););
//correctly outputs: "body{color:red}"
body
whatever...
However, if I add this:
$.get("index.html", function(data){$(data, "style").html()}); //logging omitted for clarity
I get a "this[0].innerHTML is undefined" error.
Now, it appears as though "data" is being returned a simple string. I attempted to add "html" as a "type" parameter to the get, like this:
$.get("index.html", null, function(data){$(data, "style").html()}, "html"); //logging omitted
However, no joy. Same exact problem.
My question is, what am I doing wrong? Pretty sure it's dead simple. Thanks so much for your help!