[jQuery] GM_xmlhttpRequest sort data
Hello,
I am trying to get a html page using GM_xmlhttpRequest, store the html
page code, in a var, and sort some data from it.
GM_xmlhttpRequest({
method: 'GET',
url: 'http://www.myurl.com/test.html',
onload: function(html)
{
html = html.responseText;
$(html).("div[style*='font-size']").each(function(i){
alert(i);
});
}
});
html contains the correct code, but I can't sort the data like I could
in $(document).("div[style*='font-size']"). Any ideas?
Thanks