XKit

XKit.download: download extension data from the XKit servers.

Methods

# XKit.download.extension(extension_id, callback)

Download extension_id and return the results to callback.

# XKit.download.page(url, callback)

Download url (which is appended to the server URL) from XKit servers and call the callback.

Example usage:

XKit.download.page("some_page.php", function(obj) {
	// Check if the server was down?
	if (obj.server_down === true) {
		alert("Can't reach!");
		return;
	}

	alert(obj.some_data);
});

Tips