views:

32

answers:

1

Hi

is it possible to extract the meta data from a page loaded via ajax.

I tried $("meta") as my selector but it doesn't work?

Any help would be greatly appreciated.

A

this is my code

$.ajax({
  url: obj
  ,success: function(responseText){
   var $response=$(responseText);
console.log($response.find("meta").html());
}
});
A: 

Are you using load or get? Load silently filters out all but the body element. I don't think that get does this, but I haven't tried accessing elements inside the head with it.

tvanfosson
im using $.ajax({ call
Alessandro
Hmm. Can you edit your question to provide the actual code, particularly the part where you try to extract the tags? It may be that all the ajax methods filter all but the body element and you have to look at the raw result.
tvanfosson