GetUrlSequencer

Kind of class:class
Inherits from:none
Version:06/05/07
Author:Aaron Clinger
Classpath:org.casaframework.util.GetUrlSequencer
File last modified:Sunday, 19 August 2007, 13:43:36
GetUrlSequencer delays/spaces out getURL requests to prevent browsers from choking from too many requests sent quickly in succession.
Example:
GetUrlSequencer.getURL("javascript:alert('call one');");
GetUrlSequencer.getURL("javascript:alert('call two');");
GetUrlSequencer.getURL("javascript:alert('call three');");

Summary

Class methods

Class methods

changeDelay

static function changeDelay (delay:Number) : Void
Changes the delay/spacing between getURL calls.
Parameters:
delay:
The time in milliseconds between calls.
Usage note:
Class defaults to 250 milliseconds between getURL calls.

getURL

static function getURL (url:String, window:String, method:String) : Void
Loads a document from a specific URL into a window or passes variables to another application at a defined URL.
Parameters:
url :
The URL from which to obtain the document.
window:
[optional] Specifies the window or HTML frame into which the document should load.
method:
[optional] A GET or POST method for sending variables.
Usage note:
This acts identical to flash's native getURL.