exception
void
exception
(
exceptionObject
,
functionName
)
Logs exceptions on BLOBbox's webdev console, in a readable and debuggable way.
- Parameters:
-
exceptionObject <Object>The exception object catched -
functionName <String>Name of the function (for tracking purpose)
- Returns:
void
TVB.dump
String
TVB.dump
(
obj
,
[level]
)
Dumps the content of an object or an array.
- Parameters:
-
obj <Object>The array, the object or any kind of data -
[level] <Integer>Optional: the starting level
- Returns:
String - Dumped text, print in a console or on a log file
TVB.error
Void
TVB.error
(
message
)
Similar to TVB.log, is used internally just to display errors
- Parameters:
-
message <Object>An object or a string to be printed on the log console
- Returns:
Void
TVB.getBrowserAgent
Object
TVB.getBrowserAgent
(
)
User Agent Based Browser Detection
This function uses the userAgent string to get the browsers information.
The returned object will look like:
This function uses the userAgent string to get the browsers information.
The returned object will look like:
obj {
ua: 'Full UserAgent String'
opera: boolean
safari: boolean
firefox: boolean
mozilla: boolean
msie: boolean
mac: boolean
win: boolean
unix: boolean
version: string
flash: version string
}
- Returns:
Object - Browser Information Object
TVB.log
Void
TVB.log
(
message
)
Logs an object or a string to the console; works on
Microsoft Internet Explorer, Mozilla Firefox,
Apple Safari and TVBLOB BLOBBOX.
- Parameters:
-
message <Object>An object or a string to be printed on the log console
- Returns:
Void
TVB.warning
Void
TVB.warning
(
message
)
Similar to TVB.log, is used internally just to display warnings
- Parameters:
-
message <Object>An object or a string to be printed on the log console
- Returns:
Void