examples/webconsole/resources/js/jquery/jquery.dataTables.js
function _fnReadCookie ( sName )
		{
			var
				aParts = window.location.pathname.split('/'),
				sNameEQ = sName + '_' + aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase() + '=',
			 	sCookieContents = document.cookie.split(';');
			
			for( var i=0 ; i<sCookieContents.length ; i++ )
			{
				var c = sCookieContents[i];
				
				while (c.charAt(0)==' ')
				{
					c = c.substring(1,c.length);
				}
				
				if (c.indexOf(sNameEQ) === 0)
				{
					return decodeURIComponent( c.substring(sNameEQ.length,c.length) );
				}
			}
			return null;
		}
function _fnReadCookie ( sName )
		{
			var
				aParts = window.location.pathname.split('/'),
				sNameEQ = sName + '_' + aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase() + '=',
			 	sCookieContents = document.cookie.split(';');
			
			for( var i=0 ; i<sCookieContents.length ; i++ )
			{
				var c = sCookieContents[i];
				
				while (c.charAt(0)==' ')
				{
					c = c.substring(1,c.length);
				}
				
				if (c.indexOf(sNameEQ) === 0)
				{
					return decodeURIComponent( c.substring(sNameEQ.length,c.length) );
				}
			}
			return null;
		}
function _fnReadCookie ( sName ) { var aParts = window . location . pathname . split ( '/' ) , sNameEQ = sName + '_' + aParts [ aParts . length - 1 ] . replace ( / [\/:] / g , "" ) . toLowerCase ( ) + '=' , sCookieContents = document . cookie . split ( ';' ) ; for ( var i = 0 ; i < sCookieContents . length ; i ++ ) { var c = sCookieContents [ i ] ; while ( c . charAt ( 0 ) == ' ' ) { c = c . substring ( 1 , c . length ) ; } if ( c . indexOf ( sNameEQ ) === 0 ) { return decodeURIComponent ( c . substring ( sNameEQ . length , c . length ) ) ; } } return null ; }
Read an old cookie to get a cookie with an old table state
@param {string} sName name of the cookie to read
@returns {string} contents of the cookie - or null if no cookie with that name found
@memberof DataTable#oApi
Read an old cookie to get a cookie with an old table state