Javascript URL Library documentation
This is the initial documentation for the Javascript URL Library. This documentation will be populated gradually over time and updated as new versions of the library are released. At this stage it simply includes a brief description of each of the functions/methods available in the library.
FLQ.URL
Fliquid URL building/handling class.
thisURL()
Parses the current window.location and returns a FLQ.URL object.
set()
Parses a URL and sets the properties of the FLQ.URL object.
removeArg()
Is used remove a specified argument from the FLQ.URL object arguments.
addArg()
Is used to add an argument with specified value to the FLQ.URL object arguments.
parseURL()
Parses the specified URL and returns an object containing the various components.
parseArgs()
Parses a query string and returns an object containing the parsed data.
toArgs()
Takes an object and returns a query string
toAbsolute()
Returns a string containing the absolute URL for the current FLQ.URL object.
toRelative()
Returns a string containing the relative URL for the current FLQ.URL object.
isHost()
Is used to determine whether the host in the FLQ.URL object matches the current host.
toString()
Returns a string containing the current FLQ.URL object as a URL.
