basic.js | |
Variables | |
ngLibsURL | Default main URL location of the libraries. |
ngHTTPProtocol | Used protocol (http:// or https://). |
ngEmptyURL | URL to non-existent content. |
ngOpera | TRUE if user is using the Opera browser. |
ngOperaVersion | Float number identifying Opera browser version |
ngIExplorer | TRUE if user is using the Internet Explorer browser. |
ngIExplorerVersion | Version of the Internet Explorer browser. |
ngIExplorer6 | TRUE if user is using the Internet Explorer version 6 or lower. |
ngFireFox | TRUE if user is using the Firefox browser. |
ngFireFoxVersion | Version of the Firefox browser. |
ngFireFox1x | TRUE if user is using the Firefox browser version 1.x. |
ngFireFox2x | TRUE if user is using the Firefox browser version 2.x. |
ngChrome | TRUE if user is using the Chrome browser. |
ngSafari | TRUE if user is using the Safari browser. |
ngAndroid | TRUE if device uses Android OS. |
ngiOS | TRUE if device uses Apple iOS. |
ngWindowsPhone | TRUE if device uses Windows Phone OS. |
ngFireFoxOS | TRUE if device uses FireFox OS. |
ngCordova | TRUE if running inside Apache Cordova (PhoneGap) |
ngWinStoreApp | TRUE if running as Windows Store App |
ngSupportsTouch | TRUE if browser supports touch. |
ngUsingTouch | TRUE if user uses touch as a primary input. |
ngFirebug | TRUE if Firebug present (useful for debug informations). |
Debug Functions | |
Functions | |
ngASSERT | Checks the given assertion and displays description if assertion is FALSE and debug is enabled. |
ngDEBUGLOG | Displays log message in console if debug is enabled. |
ngDEBUGWARN | Displays warning message in console if debug is enabled. |
ngDEBUGERROR | Displays error message in console if debug is enabled. |
ngHASDEBUG | Tests if debug is enabled. |
Helper Functions | |
Functions | |
ngHammerJS | Checks if HammerJS library is present. |
ngPtrStartEvents | Gets input pointer start events (mousedown, touchstart, ...) |
ngPtrHTMLStartEvents | Renders supported pointer start events as HTML (onmousedown, ontouchstart, ...) |
Variables | |
ngURLParams | Parsed URL parameters. |
ngURLDefaultEscaping | Defines default URL escaping scheme. |
ngURLSafeChars | URL safe chars. |
ngHashSafeChars | Hash(fragment) safe chars These characters aren’t encoded in function <ng_HashEncode>. |
ScreenPt | This class represents screen point. |
Properties | |
x | Screen X coordinate. |
y | Screen Y coordinate. |
ngVal | Substitutes undefined values with defaults. |
ngNullVal | Substitutes undefined or null values with defaults. |
ngLibPath | Gets client library path. |
ngLibVersion | Gets client library version. |
ng_PreloadImage | Pre-loads image into browser’s memory. |
ng_PreloadImagesBegin | Starts preloading images block. |
ng_PreloadImagesEnd | Ends preloading images block and call callback function after all images are loaded. |
ng_ReloadImage | Re-loads image in browser’s memory. |
ng_AddURLParam | Adds new parameter(s) to URL. |
ng_StripURLParams | Strip parameters from URL. |
ng_URL | Handles platform specific URL. |
ng_unescape | JavaScript unescape with proper handling of plus (+) character. |
ng_htmlEncode | Encodes special HTML characters (&, <, >, “) to its HTML form. |
ng_htmlDecode | Decode special HTML characters and remove HTML tags (&, <, >, ") to its native form. |
ng_sprintf | Formats string (PHP like sprintf function). |
ng_URLEncode | Encodes special characters in URL. |
ng_HashEncode | Encodes special characters in hash(fragment) part of URL. |
ng_UTF8Encode | Encodes characters in url to utf-8 representation. |
ng_UTF8Decode | JavaScript decode URI with characters in utf-8 representation. |
ng_UTF8ParamEncode | Encodes characters in URI parameter to utf-8 representation. |
ng_UTF8ParamDecode | JavaScript decode URI parameter in utf-8 representation. |
ng_inDOM | Determines if element is present in browser’s document object model (DOM). |
ng_WindowWidth | Returns window width. |
ng_WindowHeight | Returns window height. |
ng_SetInnerHTML | Handles platform specific setting of element’s innerHTML. |
ng_AppendInnerHTML | Appends text to element’s innerHTML. |
ng_DocumentDeselect | Removes document selection. |
ng_DocumentScrollX | Gets actual document horizontal scroll offset. |
ng_DocumentScrollY | Gets actual document vertical scroll offset. |
ng_findPosX | Determines horizontal offset of the element relative to its super parent. |
ng_findPosY | Determines vertical offset of the element relative to its super parent. |
ng_findMousePosX | Determines horizontal element offset to absolute mouse position. |
ng_findMousePosY | Determines vertical element offset to absolute mouse position. |
ng_ParentPosition | Determines absolute position to parent object or document. |
ng_nullAttr | Determines if element attribute is not defined. |
ng_GetCurrentStyle | Gets current (computed) style of element. |
ng_BeginMeasureElement | Prepares element for dimension measurement. |
ng_EndMeasureElement | Finishes element dimension measurement. |
ng_GetCurrentStylePx | Extracts pixels value from current (computed) style of element. |
ng_StyleWidth | Gets element width defined by style property. |
ng_StyleHeight | Gets element height defined by style property. |
ng_SetStyleWidth | Sets element width defined by style property. |
ng_SetStyleHeight | Sets element height defined by style property. |
ng_OuterWidth | Gets element outer width. |
ng_OuterHeight | Gets element outer height. |
ng_SetOuterWidth | Sets element outer width. |
ng_SetOuterHeight | Sets element outer height. |
ng_ClientWidth | Gets element client width. |
ng_ClientHeight | Gets element client height. |
ng_SetClientWidth | Sets element client width. |
ng_SetClientHeight | Sets element client height. |
ng_setLeftTop | Sets element left, top. |
ng_setBounds | Sets element left, top, width and height. |
ng_GET | Gets value of page URL parameter. |
ng_GetURLSafeCharsEncoded | Gets array, where keys are url encoded URL safe chars (RFC1738) and values are just URL safe chars |
ng_Redirect | Redirects user to specified URL. |
ng_InIFRAME | Tests if page is opened in IFRAME. |
ng_SetByRef | Sets value as reference into object property. |
ng_SetByVal | Sets copy of given value into object property. |
ng_CopyVar | Creates true copy of variable. |
ng_MergeVar | Merges two variables. |
ng_CleanUndefined | Removes all undefined properties in object. |
ng_VarEquals | Tests if value of one variable equals to value of second variable. |
ng_IsArrayVar | Detects if variable is indexed array. |
ng_EmptyVar | Detects if variable is empty (not set). |
ngAddEvent | Adds new function to existing event handler (callback). |
ngRPC | Remote Procedure Call. |
Properties | |
nocache | If TRUE, unique timestamp is added to every request to prevent caching of results. |
Type | Type of RPC call. |
integer | Default value: rpcAuto |
HTTPMethod | Used http method (if http request). |
string | Default value: ’’ (autodetect) |
URL | Default RPC URL. |
string | Default value: ’’ |
Params | RPC Parameters. |
object | Default value: { } |
Methods | |
SetParam | Sets request parameter. |
GetParam | Gets value of request parameter. |
sendRequest | Sends request to the server. |
clearParams | Clears RPC parameters. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnEncodeParam | |
OnRequest | |
OnSendRequest | |
OnRequestSent | |
OnIFrameRequest | |
OnHTTPRequest | |
OnHTTPReadyStateChanged | |
OnHTTPRequestFailed | |
OnReceivedJSON | |
OnReceivedData | |
ngRDS | Remote Data Service based on ngRPC class. |
ngStringBuilder | This class realizes fast concatenation of strings. |
Functions | |
append | Appends the given value to the end of this instance. |
clear | Clears the string buffer. |
empty | Tests if string buffer is empty. |
toString | Converts this instance to a String. |
Functions | |
ngASSERT | Checks the given assertion and displays description if assertion is FALSE and debug is enabled. |
ngDEBUGLOG | Displays log message in console if debug is enabled. |
ngDEBUGWARN | Displays warning message in console if debug is enabled. |
ngDEBUGERROR | Displays error message in console if debug is enabled. |
ngHASDEBUG | Tests if debug is enabled. |
Functions | |
ngHammerJS | Checks if HammerJS library is present. |
ngPtrStartEvents | Gets input pointer start events (mousedown, touchstart, ...) |
ngPtrHTMLStartEvents | Renders supported pointer start events as HTML (onmousedown, ontouchstart, ...) |
Variables | |
ngURLParams | Parsed URL parameters. |
ngURLDefaultEscaping | Defines default URL escaping scheme. |
ngURLSafeChars | URL safe chars. |
ngHashSafeChars | Hash(fragment) safe chars These characters aren’t encoded in function <ng_HashEncode>. |
This class represents screen point.
new ScreenPt (int posx, int posy);
Properties | |
x | Screen X coordinate. |
y | Screen Y coordinate. |
ngVal | Substitutes undefined values with defaults. |
ngNullVal | Substitutes undefined or null values with defaults. |
ngLibPath | Gets client library path. |
ngLibVersion | Gets client library version. |
ng_PreloadImage | Pre-loads image into browser’s memory. |
ng_PreloadImagesBegin | Starts preloading images block. |
ng_PreloadImagesEnd | Ends preloading images block and call callback function after all images are loaded. |
ng_ReloadImage | Re-loads image in browser’s memory. |
ng_AddURLParam | Adds new parameter(s) to URL. |
ng_StripURLParams | Strip parameters from URL. |
ng_URL | Handles platform specific URL. |
ng_unescape | JavaScript unescape with proper handling of plus (+) character. |
ng_htmlEncode | Encodes special HTML characters (&, <, >, “) to its HTML form. |
ng_htmlDecode | Decode special HTML characters and remove HTML tags (&, <, >, ") to its native form. |
ng_sprintf | Formats string (PHP like sprintf function). |
ng_URLEncode | Encodes special characters in URL. |
ng_HashEncode | Encodes special characters in hash(fragment) part of URL. |
ng_UTF8Encode | Encodes characters in url to utf-8 representation. |
ng_UTF8Decode | JavaScript decode URI with characters in utf-8 representation. |
ng_UTF8ParamEncode | Encodes characters in URI parameter to utf-8 representation. |
ng_UTF8ParamDecode | JavaScript decode URI parameter in utf-8 representation. |
ng_inDOM | Determines if element is present in browser’s document object model (DOM). |
ng_WindowWidth | Returns window width. |
ng_WindowHeight | Returns window height. |
ng_SetInnerHTML | Handles platform specific setting of element’s innerHTML. |
ng_AppendInnerHTML | Appends text to element’s innerHTML. |
ng_DocumentDeselect | Removes document selection. |
ng_DocumentScrollX | Gets actual document horizontal scroll offset. |
ng_DocumentScrollY | Gets actual document vertical scroll offset. |
ng_findPosX | Determines horizontal offset of the element relative to its super parent. |
ng_findPosY | Determines vertical offset of the element relative to its super parent. |
ng_findMousePosX | Determines horizontal element offset to absolute mouse position. |
ng_findMousePosY | Determines vertical element offset to absolute mouse position. |
ng_ParentPosition | Determines absolute position to parent object or document. |
ng_nullAttr | Determines if element attribute is not defined. |
ng_GetCurrentStyle | Gets current (computed) style of element. |
ng_BeginMeasureElement | Prepares element for dimension measurement. |
ng_EndMeasureElement | Finishes element dimension measurement. |
ng_GetCurrentStylePx | Extracts pixels value from current (computed) style of element. |
ng_StyleWidth | Gets element width defined by style property. |
ng_StyleHeight | Gets element height defined by style property. |
ng_SetStyleWidth | Sets element width defined by style property. |
ng_SetStyleHeight | Sets element height defined by style property. |
ng_OuterWidth | Gets element outer width. |
ng_OuterHeight | Gets element outer height. |
ng_SetOuterWidth | Sets element outer width. |
ng_SetOuterHeight | Sets element outer height. |
ng_ClientWidth | Gets element client width. |
ng_ClientHeight | Gets element client height. |
ng_SetClientWidth | Sets element client width. |
ng_SetClientHeight | Sets element client height. |
ng_setLeftTop | Sets element left, top. |
ng_setBounds | Sets element left, top, width and height. |
ng_GET | Gets value of page URL parameter. |
ng_GetURLSafeCharsEncoded | Gets array, where keys are url encoded URL safe chars (RFC1738) and values are just URL safe chars |
ng_Redirect | Redirects user to specified URL. |
ng_InIFRAME | Tests if page is opened in IFRAME. |
ng_SetByRef | Sets value as reference into object property. |
ng_SetByVal | Sets copy of given value into object property. |
ng_CopyVar | Creates true copy of variable. |
ng_MergeVar | Merges two variables. |
ng_CleanUndefined | Removes all undefined properties in object. |
ng_VarEquals | Tests if value of one variable equals to value of second variable. |
ng_IsArrayVar | Detects if variable is indexed array. |
ng_EmptyVar | Detects if variable is empty (not set). |
ngAddEvent | Adds new function to existing event handler (callback). |
function ng_PreloadImage( url )
Pre-loads image into browser’s memory.
If image was already pre-loaded the function simply returns existing reference to the image class.
image ng_PreloadImage (string url)
url | image URL |
The image class (created by new Image) of the pre-loaded image.
function ng_PreloadImagesEnd( callback )
Ends preloading images block and call callback function after all images are loaded.
void ng_PreloadImagesEnd ([function callback])
callback | callback function called after all images loaded via ng_PreloadImage are loaded into browser |
-
function ng_ReloadImage( url )
Re-loads image in browser’s memory.
Instead of ng_PreloadImage this function always creates new image class.
image ng_ReloadImage (string url)
url | image URL |
The image class (created by new Image) of the loaded image.
function ng_htmlEncode( s, replacecrlf )
Encodes special HTML characters (&, <, >, “) to its HTML form.
string ng_htmlEncode (string text [,bool replacecrlf=false])
text | text with special characters |
replacecrlf | if TRUE, function replaces CRLF (or CR or LF) with <br /> HTML tag |
Text with encoded special HTML characters.
function ng_htmlDecode( s, replacecrlf, replacespaces )
Decode special HTML characters and remove HTML tags (&, <, >, ") to its native form.
string ng_htmlDecode (string text [,bool replacecrlf=false, bool replacespaces=false])
text | text with HTML encoded characters |
replacecrlf | if TRUE replaces CRLF with spaces |
Text with decoded characters.
function ng_URLEncode( str, allasunicode, safechars, escscheme )
Encodes special characters in URL.
Function also properly handles UTF-8 characters (>255).
string ng_URLEncode (string url [, bool allasunicode=false, array safechars, int escscheme ])
url | url to be encoded |
allasunicode | encode all characters as UNICODE (applicable only if escscheme is URL_ESCAPING_UNICODE) |
safechars | list of characters which are not encoded |
escscheme | escaping scheme (uses ngURLDefaultEscaping if not specified) |
URL with encoded characters.
function ng_HashEncode( s, safechars, escscheme )
Encodes special characters in hash(fragment) part of URL.
string ng_HashEncode (string s [, array safechars, int escscheme ])
s | string to be encoded |
safechars | list of characters which are not encoded |
escscheme | escaping scheme (uses ngURLDefaultEscaping if not specified) |
Encoded string.
function ng_setBoundsNotIE( o, l, t, w, h )
Sets element left, top, width and height. Optimized for IE if used.
void ng_setBounds (object obj, int left, int top, int width, int height)
obj | object element |
left | left position in pixels |
top | top position in pixels |
width | width of element in pixels |
height | height of element in pixels |
-
function ng_MergeVar( d, o, allowundefined, callback )
Merges two variables.
void ng_MergeVar (mixed dst, mixed var [, bool allowundefined=false, function callback])
dst | destination variable |
var | variable to be merged |
allowundefined | if FALSE (default), undefined values in parameter var are ignored |
callback | optional callback function |
-
function ng_VarEquals( a, b, noobj )
Tests if value of one variable equals to value of second variable. Function handles date types and objects.
bool ng_VarEquals (mixed a, mixed b [, bool noobj=false])
a | first variable |
b | second variable |
noobj | if TRUE don’t compare objects |
TRUE if values of variables are equal.
function ngAddEvent( ev, fce )
Adds new function to existing event handler (callback).
function ngAddEvent (function oldevent, function appendevent)
oldevent | old event handler |
appendevent | function to be added to existing event handler |
New event handler function that calls both event handlers (oldevent function and than appendevent function).
Remote Procedure Call.
This class is used for asynchronous communication with server.
new ngRPC ([string id=’’, string url=’’, bool nocache=false])
id | unique ID of RPC class |
url | request URL |
nocache | if TRUE, unique timestamp is added to every request to prevent caching results |
Properties | |
nocache | If TRUE, unique timestamp is added to every request to prevent caching of results. |
Type | Type of RPC call. |
integer | Default value: rpcAuto |
HTTPMethod | Used http method (if http request). |
string | Default value: ’’ (autodetect) |
URL | Default RPC URL. |
string | Default value: ’’ |
Params | RPC Parameters. |
object | Default value: { } |
Methods | |
SetParam | Sets request parameter. |
GetParam | Gets value of request parameter. |
sendRequest | Sends request to the server. |
clearParams | Clears RPC parameters. |
Events | |
AddEvent | Adds new function to the event handler (callback). |
RemoveEvent | Removes function from the event handler (callback). |
OnEncodeParam | |
OnRequest | |
OnSendRequest | |
OnRequestSent | |
OnIFrameRequest | |
OnHTTPRequest | |
OnHTTPReadyStateChanged | |
OnHTTPRequestFailed | |
OnReceivedJSON | |
OnReceivedData |
Remote Data Service based on ngRPC class.
This class is used for getting asynchronous data from server.
new ngRDS ([string id=’’, string url=’’, function callback = null, bool nocache=false])
id | unique ID of RPC class |
url | request URL |
callback | function which is called after data was received |
nocache | if TRUE, unique timestamp is added to every request to prevent caching results |
This class realizes fast concatenation of strings.
Standard JavaScript string concatenation is quite slow. This class utilizes the fact that array joining is much faster than standard string concatenation.
new ngStringBuilder (mixed value)
s = s1 + s2 + s3;
var sb = new ngStringBuilder(s1); sb.append(s2); sb.append(s3); s = sb.toString();
this.append = function ( value )
Appends the given value to the end of this instance.
ngStringBuilder append (mixed value)
value | string, array or other ngStringBuilder class |
This instance of ngStringBuilder. Helps function chaining - sb.append(‘a’).append(‘b’).append(‘c’).
Used protocol (http:// or https://).
var ngHTTPProtocol
TRUE if user is using the Opera browser.
var ngOpera
Float number identifying Opera browser version
var ngOperaVersion
TRUE if user is using the Internet Explorer browser.
var ngIExplorer
Version of the Internet Explorer browser.
var ngIExplorerVersion
TRUE if user is using the Internet Explorer version 6 or lower.
var ngIExplorer6
TRUE if user is using the Firefox browser.
var ngFireFox
Version of the Firefox browser.
var ngFireFoxVersion
TRUE if user is using the Firefox browser version 1.x.
var ngFireFox1x
TRUE if user is using the Firefox browser version 2.x.
var ngFireFox2x
TRUE if user is using the Chrome browser.
var ngChrome
TRUE if user is using the Safari browser.
var ngSafari
TRUE if device uses Android OS.
var ngAndroid
TRUE if device uses Apple iOS.
var ngiOS
TRUE if device uses Windows Phone OS.
var ngWindowsPhone
TRUE if device uses FireFox OS.
var ngFireFoxOS
TRUE if running inside Apache Cordova (PhoneGap)
var ngCordova
TRUE if running as Windows Store App
var ngWinStoreApp
TRUE if browser supports touch.
var ngSupportsTouch
TRUE if user uses touch as a primary input.
var ngUsingTouch
TRUE if Firebug present (useful for debug informations).
var ngFirebug
Tests if debug is enabled.
function ngHASDEBUG()
Checks if HammerJS library is present.
function ngHammerJS()
Gets input pointer start events (mousedown, touchstart, ...)
function ngPtrStartEvents()
Renders supported pointer start events as HTML (onmousedown, ontouchstart, ...)
function ngPtrHTMLStartEvents( html, ev )
Parsed URL parameters.
var ngURLParams
Defines default URL escaping scheme.
var ngURLDefaultEscaping
URL safe chars.
var ngURLSafeChars
Hash(fragment) safe chars These characters aren’t encoded in function ng_HashEncode.
var ngHashSafeChars
Substitutes undefined values with defaults.
function ngVal( v, defv )
Substitutes undefined or null values with defaults.
function ngNullVal( v, defv )
Gets client library path.
function ngLibPath( lib, file )
Gets client library version.
function ngLibVersion( lib )
Pre-loads image into browser’s memory.
function ng_PreloadImage( url )
Starts preloading images block.
function ng_PreloadImagesBegin()
Ends preloading images block and call callback function after all images are loaded.
function ng_PreloadImagesEnd( callback )
Re-loads image in browser’s memory.
function ng_ReloadImage( url )
Adds new parameter(s) to URL.
function ng_AddURLParam( url, param )
Strip parameters from URL.
function ng_StripURLParams( url )
JavaScript unescape with proper handling of plus (+) character.
function ng_unescape( str, escscheme )
Encodes special HTML characters (&, <, >, “) to its HTML form.
function ng_htmlEncode( s, replacecrlf )
Decode special HTML characters and remove HTML tags (&, <, >, ") to its native form.
function ng_htmlDecode( s, replacecrlf, replacespaces )
Formats string (PHP like sprintf function).
function ng_sprintf()
Encodes special characters in URL.
function ng_URLEncode( str, allasunicode, safechars, escscheme )
Encodes special characters in hash(fragment) part of URL.
function ng_HashEncode( s, safechars, escscheme )
Encodes characters in url to utf-8 representation.
function ng_UTF8Encode( str, safechars )
JavaScript decode URI with characters in utf-8 representation.
function ng_UTF8Decode( str )
Encodes characters in URI parameter to utf-8 representation.
function ng_UTF8ParamEncode( str )
JavaScript decode URI parameter in utf-8 representation.
function ng_UTF8ParamDecode( str )
Determines if element is present in browser’s document object model (DOM).
function ng_inDOM( e )
Returns window width.
function ng_WindowWidth()
Returns window height.
function ng_WindowHeight()
Appends text to element’s innerHTML.
function ng_AppendInnerHTML( o, t )
Removes document selection.
function ng_DocumentDeselect()
Gets actual document horizontal scroll offset.
function ng_DocumentScrollX()
Gets actual document vertical scroll offset.
function ng_DocumentScrollY()
Determines horizontal offset of the element relative to its super parent.
function ng_findPosX( obj )
Determines vertical offset of the element relative to its super parent.
function ng_findPosY( obj )
Determines horizontal element offset to absolute mouse position.
function ng_findMousePosX( obj )
Determines vertical element offset to absolute mouse position.
function ng_findMousePosY( obj )
Determines absolute position to parent object or document.
function ng_ParentPosition( o, parent )
Determines if element attribute is not defined.
function ng_nullAttr( v )
Gets current (computed) style of element.
function ng_GetCurrentStyle( o, s )
Prepares element for dimension measurement.
function ng_BeginMeasureElement( o )
Finishes element dimension measurement.
function ng_EndMeasureElement( o )
Extracts pixels value from current (computed) style of element.
function ng_GetCurrentStylePx( o, s )
Gets element width defined by style property.
function ng_StyleWidth( o )
Gets element height defined by style property.
function ng_StyleHeight( o )
Sets element width defined by style property.
function ng_SetStyleWidth( o, v )
Sets element height defined by style property.
function ng_SetStyleHeight( o, v )
Gets element outer width.
function ng_OuterWidth( o )
Gets element outer height.
function ng_OuterHeight( o )
Sets element outer width.
function ng_SetOuterWidth( o, v )
Sets element outer height.
function ng_SetOuterHeight( o, v )
Gets element client width.
function ng_ClientWidth( o )
Gets element client height.
function ng_ClientHeight( o )
Sets element client width.
function ng_SetClientWidth( o, v )
Sets element client height.
function ng_SetClientHeight( o, v )
Sets element left, top.
function ng_setLeftTopNotIE( o, l, t )
Sets element left, top, width and height.
function ng_setBoundsNotIE( o, l, t, w, h )
Gets value of page URL parameter.
function ng_GET( p )
Gets array, where keys are url encoded URL safe chars (RFC1738) and values are just URL safe chars
function ng_GetURLSafeCharsEncoded()
Redirects user to specified URL.
function ng_Redirect( url, topframe )
Tests if page is opened in IFRAME.
function ng_InIFRAME()
Sets value as reference into object property.
function ng_SetByRef( obj, prop, val )
Sets copy of given value into object property.
function ng_SetByVal( obj, prop, val )
Creates true copy of variable.
function ng_CopyVar( o )
Merges two variables.
function ng_MergeVar( d, o, allowundefined, callback )
Removes all undefined properties in object.
function ng_CleanUndefined( d )
Tests if value of one variable equals to value of second variable.
function ng_VarEquals( a, b, noobj )
Detects if variable is indexed array.
function ng_IsArrayVar( o )
Detects if variable is empty (not set).
function ng_EmptyVar( o )
Adds new function to existing event handler (callback).
function ngAddEvent( ev, fce )
If TRUE, unique timestamp is added to every request to prevent caching of results.
this.nocache
Appends the given value to the end of this instance.
this.append = function ( value )
Clears the string buffer.
this.clear = function ()
Tests if string buffer is empty.
this.empty = function ()
Converts this instance to a String.
this.toString = function ()