GetUrlSequencer

Kind of class:class
Inherits from:none
Version:09/14/06
Author:Aaron Clinger
Classpath:org.casaframework.util.GetUrlSequencer
File last modified:Wednesday, 07 March 2007, 14:18:49
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.