User Tools

Site Tools


en:code:data:web

This is an old revision of the document!


Table of Contents

Web

This object allows you to download data.

Functions

Web

Constructor function.

Syntax

var myObject = new Web(eventsAndOptions);

Arguments

  1. events - (object) the events that can be called
    • onFinished - (onFinished) called when the data has been downloaded
    • onDownloadProgress - (onDownloadProgress) called when the download progresses
    • onError - (onError) called when an error has occured
  2. file - (File or string) the file or filename to use as a destination for the downloaded data

Example

var myObject = new Web();
var myObject = new Web({
	onFinished: function()
	{
		Console.print("Finished!");
	},
	file: "myFile.txt"
});
en/code/data/web.1317508298.txt.gz · Last modified: 2021/02/13 11:23 (external edit)