Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / Cookies.html
index 6d0e4a0..67f5f8d 100644 (file)
@@ -1,4 +1,21 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-util.Cookies'>/**
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-util-Cookies'>/**
 </span> * @class Ext.util.Cookies
 
 Utility class for setting/reading values from browser cookies.
@@ -12,7 +29,7 @@ A cookie can be invalidated on the client machine using the {@link #clear} metho
 Ext.define('Ext.util.Cookies', {
     singleton: true,
     
-<span id='Ext-util.Cookies-method-set'>    /**
+<span id='Ext-util-Cookies-method-set'>    /**
 </span>     * Create a cookie with the specified name and value. Additional settings
      * for the cookie may be optionally specified (for example: expiration,
      * access restriction, SSL).
@@ -45,7 +62,7 @@ Ext.define('Ext.util.Cookies', {
         document.cookie = name + &quot;=&quot; + escape(value) + ((expires === null) ? &quot;&quot; : (&quot;; expires=&quot; + expires.toGMTString())) + ((path === null) ? &quot;&quot; : (&quot;; path=&quot; + path)) + ((domain === null) ? &quot;&quot; : (&quot;; domain=&quot; + domain)) + ((secure === true) ? &quot;; secure&quot; : &quot;&quot;);
     },
 
-<span id='Ext-util.Cookies-method-get'>    /**
+<span id='Ext-util-Cookies-method-get'>    /**
 </span>     * Retrieves cookies that are accessible by the current page. If a cookie
      * does not exist, &lt;code&gt;get()&lt;/code&gt; returns &lt;tt&gt;null&lt;/tt&gt;.  The following
      * example retrieves the cookie called &quot;valid&quot; and stores the String value
@@ -77,7 +94,7 @@ Ext.define('Ext.util.Cookies', {
         return null;
     },
 
-<span id='Ext-util.Cookies-method-clear'>    /**
+<span id='Ext-util-Cookies-method-clear'>    /**
 </span>     * Removes a cookie with the provided name from the browser
      * if found by setting its expiration date to sometime in the past. 
      * @param {String} name The name of the cookie to remove
@@ -90,7 +107,7 @@ Ext.define('Ext.util.Cookies', {
         }
     },
     
-<span id='Ext-util.Cookies-method-getCookieVal'>    /**
+<span id='Ext-util-Cookies-method-getCookieVal'>    /**
 </span>     * @private
      */
     getCookieVal : function(offset){
@@ -101,4 +118,6 @@ Ext.define('Ext.util.Cookies', {
         return unescape(document.cookie.substring(offset, endstr));
     }
 });
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>