Namespace _mhelper_


Defined in: mashi.helper.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Alias for mashi.application.prototype.helper
Method Summary
Method Attributes Method Name and Description
<static>  
_mhelper_.addClass(node, class)
Helper - Add class name
<static>  
_mhelper_.addEvent(node, event, node)
Helper - Add event; written by Dean Edwards, 2005 with input from Tino Zijdel, Matthias Miller, Diego Perini
<static>  
_mhelper_.array_unique(arrayName)
Helper - Create unique array
<static>  
_mhelper_.clearAllIntervals()
Helper - Clear all intervals
<static>  
_mhelper_.findPosX(node)
Helper - Find top position of an element; (c) Peter-Paul Koch
<static>  
_mhelper_.findPosY(node)
Helper - Find left position of an element; (c) Peter-Paul Koch
<static>  
_mhelper_.getCookie(cookie)
Helper - Get Cookie
<static>  
_mhelper_.getStyle(id, property)
Helper - Get Style Property
<static>  
_mhelper_.hasClass(node, class)
Helper - Test if element has class name
<static>  
_mhelper_.removeChildNodes(node)
Helper - Remove child nodes
<static>  
_mhelper_.removeChildNodesByClassName(node, class)
Helper - Remove child nodes by class name
<static>  
_mhelper_.removeClass(node, class)
Helper - Remove class name
<static>  
_mhelper_.removeEvent(node, event, node)
Helper - Remove event
<static>  
_mhelper_.setCookie(cookie, cookie, expiredays)
Helper - Set Cookie
Namespace Detail
_mhelper_
Alias for mashi.application.prototype.helper
Method Detail
<static> _mhelper_.addClass(node, class)
Helper - Add class name
_mhelper_.addClass(elem, 'active');
Parameters:
{HTML-Object} node
{String} class
name

<static> _mhelper_.addEvent(node, event, node)
Helper - Add event; written by Dean Edwards, 2005 with input from Tino Zijdel, Matthias Miller, Diego Perini
_mhelper_.addEvent(link, 'click', my_click_handler);
Parameters:
{HTML-Object} node
{String} event
type (without 'on')
{Function} node

<static> {Array} _mhelper_.array_unique(arrayName)
Helper - Create unique array
_mhelper_.array_unique(my_array);
Parameters:
{Array} arrayName
Returns:
{Array} arrayName

<static> _mhelper_.clearAllIntervals()
Helper - Clear all intervals
_mhelper_.clearAllIntervals();

<static> _mhelper_.findPosX(node)
Helper - Find top position of an element; (c) Peter-Paul Koch
_mhelper_.findPosX(elem);
Parameters:
{HTML-Object} node

<static> _mhelper_.findPosY(node)
Helper - Find left position of an element; (c) Peter-Paul Koch
_mhelper_.findPosY(elem);
Parameters:
{HTML-Object} node

<static> _mhelper_.getCookie(cookie)
Helper - Get Cookie
_mhelper_.getCookie('my_cookie');
Parameters:
{String} cookie
name

<static> {String} _mhelper_.getStyle(id, property)
Helper - Get Style Property
_mhelper_.getStyle('header', 'color');
Parameters:
{String} id
{String} property
Returns:
{String} property value

<static> _mhelper_.hasClass(node, class)
Helper - Test if element has class name
_mhelper_.hasClass(elem, 'active');
Parameters:
{HTML-Object} node
{String} class
name

<static> _mhelper_.removeChildNodes(node)
Helper - Remove child nodes
_mhelper_.removeChildNodes(menu);
Parameters:
{HTML-Object} node

<static> _mhelper_.removeChildNodesByClassName(node, class)
Helper - Remove child nodes by class name
_mhelper_.removeChildNodes(menu, 'disabled');
Parameters:
{HTML-Object} node
{String} class
name

<static> _mhelper_.removeClass(node, class)
Helper - Remove class name
_mhelper_.removeClass(elem, 'active');
Parameters:
{HTML-Object} node
{String} class
name

<static> _mhelper_.removeEvent(node, event, node)
Helper - Remove event
_mhelper_.removeEvent(link, 'click', my_click_handler);
Parameters:
{HTML-Object} node
{String} event
type (without 'on')
{Function} node

<static> _mhelper_.setCookie(cookie, cookie, expiredays)
Helper - Set Cookie
_mhelper_.setCookie(menu, 'disabled');
Parameters:
{String} cookie
name
{String} cookie
value
{Number} expiredays
Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 11:38:27 GMT+0200 (CEST)