Greasy Fork is available in English.

Discussies » Scriptaanvragen

some examples please

§
Geplaatst: 21-02-2015
Bijgewerkt: 21-02-2015

some examples please

Please, would love to see some examples using one of these functions .load , ajax orGM_xmlhttpRequest , what is the best to use, for example i have a torrents list and when i will hover over a torrent to see the cover image and the description of the torrent .Thank You!

woxxomMod
§
Geplaatst: 21-02-2015

AFAIK only GM_xmlhttpRequest is working inside userscripts. There are lots of different examples everywhere, including the greasespot wiki.

§
Geplaatst: 21-02-2015
Bijgewerkt: 21-02-2015

You can use both, assuming that you are pulling data from same website under same domain name.

For examples of jQuery.ajax: http://api.jquery.com/jquery.ajax/#entry-examples
For examples of GM_xmlhttpRequest: http://wiki.greasespot.net/GM_xmlhttpRequest#Examples

§
Geplaatst: 21-02-2015
Bijgewerkt: 21-02-2015

GM_xmlhttpRequest is what i need, yeap, just tested , it's giving me what i want, thank wOxxOm and JixunMoe !

Reactie plaatsen

Log in om antwoord te geven.