Greasemonkey AJAX post scheint nicht zu funktionieren, auch mit @grant angegeben

Mein Skript funktioniert nicht. Der AJAX-call nicht passiert ist. Warum?

//==UserScript==
//@name        prova
//@namespace   http://blogpagliaccio.wordpress.com/
//@description prova
//@include     http://*
//@version     1
//@grant       GM_xmlhttpRequest
//@require     http://userscripts.org/scripts/source/85398.user.js
//==/UserScript==

//[........... other code]

    console.log('start ajax call...');
            GM_xmlhttpRequest({
                    method: "POST",
                    url: "www.prova.it",
                    data: {parametro:parametro},
                    onload: function(response) {
                            console.log(response.responseText);
                    },
                    onerror: function(reponse) {
                            alert('error');
                            console.log(reponse);
                    }
            });


Ich zählte die API-Funktion in eine @grant Richtlinie, aber ich sehe nicht ein AJAX-Aufruf und Antwort.

InformationsquelleAutor pagliaccio | 2013-01-05
Schreibe einen Kommentar