GetUrlSequencer
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 06/05/07 |
| Author: | Aaron Clinger |
| Classpath: | org.casalib.util.GetUrlSequencer |
| File last modified: | Monday, 01 December 2008, 13:34:40 |
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
- 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.
- changeDelay (delay:Number) : Void
- Changes the delay/spacing between getURL calls.
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
250milliseconds betweengetURLcalls.
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.