Class Index

View All Classes

Class vs.data.URL

Extends vs.core.Object.

Class Summary
Constructor Attributes Constructor Name and Description
 
vs.data.URL(config)
The URL class URL splits any URI into its parts, all of which are optional.
Field Summary
Field Attributes Field Name and Description
 
The url anchor
 
The url authority
 
The url anchor
 
The url file name
 
The url host
 
The url password
 
The url path
 
The url port
 
The url protocol
 
The query query
 
The url query as object of
 
The url relative
 
src
The url src
 
The url user
Fields borrowed from class vs.core.Object:
getOwnPropertyDescriptor, getPropertyDescriptor, id, propagateChange
Method Summary
Method Attributes Method Name and Description
 
parse(str)
Parse a url.
Methods borrowed from class vs.core.Object:
clone, configure, getProperties, init, parseJSON, propertyChange, toJSON
Class Detail
vs.data.URL(config)
The URL class URL splits any URI into its parts, all of which are optional.
This code is based on parseUri, Copyright 2010 Steven Levithan
Author: David Thevenin.
 var url = new vs.data.URL ();
 url.parse ('http://test.com/dir1/dir2/index.html#top');
 console.log (url.path);
 var url = new ABURL ();
 url.src = 'http://test.com/dir1/dir2/index.html#top';
 console.log (url.path);
Parameters:
{Object} config
The configuration structure [mandatory]
Field Detail
anchor
The url anchor
top in http://test.com/index.html#top

authority
The url authority
usr:pwd@www.test.com:81

directory
The url anchor
dir1/dir2/ in http://test.com/dir1/dir2/index.html#top

file
The url file name
index.html in http://test.com/index.html#top

host
The url host
test.com in http://test.com/dir1/dir2/index.html#top

password
The url password

path
The url path
dir1/dir2/index.html in http://test.com/dir1/dir2/index.html#top

port
The url port

protocol
The url protocol
http in http://test.com/dir1/dir2/index.html#top

query
The query query

queryKey
The url query as object of

relative
The url relative
dir1/dir2/index.html#top in http://test.com/dir1/dir2/index.html#top

src
The url src
http://test.com/index.html#top

user
The url user
Method Detail
parse(str)
Parse a url.
Parameters:
{String} str
the url to parse