hi there, i'm trying to use gm_xmlhttprequest but I have a problem.
I first tried with xmlhttprequest to get information from an xml file
within the same domain, it worked fine
I'm now trying to do the same, GM fonction to get the information from
a different URL, but it does nothing, and i don't have any bug on
firebug or something
My target is a small xml file i've made to try the script
Here is my code :
GM_xmlhttpRequest({
method: 'GET',
url: 'http://monurl/monfichier.xml',
headers: {'User-Agent': 'Mozilla/5.0 (compatible) Greasemonkey',
'Accept': 'application/xml,text/xml'},
onload: function(responseDetails) {
alert(responseDetails.responseText);
}
}
});
and my xml file :
<?xml version="1.0" encoding="UTF-8"?>
<root>
<version>2</version>
</root>
I just want to get the information from the xml file.
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.