Module: url

url.js

Members


<static, constant> parseUrl

Resolve and parse the elements of a URL.

Methods


<static> getAbsoluteURL(url)

Get absolute version of relative URL. Used to tell Flash the correct URL.

Parameters:
Name Type Description
url string

URL to make absolute

See:
Returns:

Absolute URL

Type
string

<static> getFileExtension(path)

Returns the extension of the passed file name. It will return an empty string
if passed an invalid path.

Parameters:
Name Type Description
path string

The fileName path like '/path/to/file.mp4'

Returns:

The extension in lower case or an empty string if no
extension could be found.

Type
string

<static> isCrossOrigin(url)

Returns whether the url passed is a cross domain request or not.

Parameters:
Name Type Description
url string

The url to check.

Returns:

Whether it is a cross domain request or not.

Type
boolean