Includes : HttpRequest

By w35l3y Last update Aug 27, 2009 — Installed 1,847 times. Daily Installs: 25, 16, 14, 79, 13, 13, 7, 14, 6, 18, 4, 46, 13, 27, 92, 51, 30, 23, 18, 22, 22, 23, 15, 21, 39, 22, 34, 23, 8, 24, 11, 21
Script Summary:
HttpRequest Function
Version: 1.0.0.2
Copyright: 2009, w35l3y (http://gm.wesley.eti.br/includes)
License: GNU GPL
Recently Updated TopicsPosts
swarnava strikes again2
yay2

this script has 2 topics, 4 posts

This script has no reviews.

Implementing

// @require        http://userscripts.org/scripts/source/56489.user.js

Examples

HttpRequest.open({
	"method":"get",
	"url":"www.google.com",
	"onsuccess":function(params)	// don't confuse "onsuccess" and "onload"! "onload" doesn't exist here
	{
		alert(params.response.text); // raw, text, xml, json
	}
}).send();