| BLANK_IMAGE_URL : StringURL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
+ Package: | Global | Defined In: | Ext.js,
Ext-more.js | Class: | Ext | Extends: | Object |
Ext core utilities and functions.
This class is a singleton and cannot be created directly. Public Properties|
| : Object Removes a DOM node from the document. | Ext | | BLANK_IMAGE_URL : StringURL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
In older versions ... URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images.
In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server.
-For other browsers it uses an inline data URL. | Ext | | SSL_SECURE_URL : StringURL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
-the IE insecure conten... URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
-the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). | Ext | | USE_NATIVE_JSON : BooleanIndicates whether to use native browser parsing for JSON methods.
-This option is ignored if the browser does not sup... Indicates whether to use native browser parsing for JSON methods.
-This option is ignored if the browser does not support native JSON methods.
-Note: Native JSON methods will not work with objects that have functions.
-Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) | Ext | | emptyFn : Function A reusable empty function | Ext | | enableFx : BooleanTrue if the Ext.Fx Class is available | Ext | | enableGarbageCollector : Boolean True to automatically uncache orphaned Ext.Elements periodically (defaults to true) | Ext | | enableListenerCollection : BooleanTrue to automatically purge event listeners after uncaching an element (defaults to false).
-Note: this only happens ... True to automatically purge event listeners after uncaching an element (defaults to false).
-Note: this only happens if enableGarbageCollector is true. | Ext | | isAir : Boolean True if the detected platform is Adobe Air. | Ext | | isBorderBox : Boolean True if the detected browser is Internet Explorer running in non-strict mode. | Ext | | isChrome : Boolean True if the detected browser is Chrome. | Ext | | isGecko : Boolean True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). | Ext | | isGecko2 : Boolean True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). | Ext | | isGecko3 : Boolean True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). | Ext | | isIE : Boolean True if the detected browser is Internet Explorer. | Ext | | isIE6 : Boolean True if the detected browser is Internet Explorer 6.x. | Ext | | isIE7 : Boolean True if the detected browser is Internet Explorer 7.x. | Ext | | isIE8 : Boolean True if the detected browser is Internet Explorer 8.x. | Ext | | isLinux : Boolean True if the detected platform is Linux. | Ext | | isMac : Boolean True if the detected platform is Mac OS. | Ext | | isOpera : Boolean True if the detected browser is Opera. | Ext | | isReady : Boolean True when the document is fully initialized and ready for action | Ext | | isSafari : Boolean True if the detected browser is Safari. | Ext | | isSafari2 : Boolean True if the detected browser is Safari 2.x. | Ext | | isSafari3 : Boolean True if the detected browser is Safari 3.x. | Ext | | isSafari4 : Boolean True if the detected browser is Safari 4.x. | Ext | | isSecure : Boolean True if the page is running over SSL | Ext | | isStrict : Boolean True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode | Ext | | isWebKit : Boolean True if the detected browser uses WebKit. | Ext | | isWindows : Boolean True if the detected platform is Windows. | Ext | | useShims : BooleanBy default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
+For other browsers it uses an inline data URL. | Ext | | SSL_SECURE_URL : StringURL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
+the IE insecure content... URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
+the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""'). | Ext | | USE_NATIVE_JSON : BooleanIndicates whether to use native browser parsing for JSON methods.
+This option is ignored if the browser does not supp... Indicates whether to use native browser parsing for JSON methods.
+This option is ignored if the browser does not support native JSON methods.
+Note: Native JSON methods will not work with objects that have functions.
+Also, property names must be quoted, otherwise the data will not parse. (Defaults to false) | Ext | | emptyFn : Function A reusable empty function | Ext | | enableFx : BooleanTrue if the Ext.Fx Class is available | Ext | | enableGarbageCollector : Boolean True to automatically uncache orphaned Ext.Elements periodically (defaults to true) | Ext | | enableListenerCollection : Boolean True to automatically purge event listeners during garbageCollection (defaults to false). | Ext | | enableNestedListenerRemoval : BooleanEXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
+Currently not optimized... EXPERIMENTAL - True to cascade listener removal to child elements when an element is removed.
+Currently not optimized for performance. | Ext | | isAir : Boolean True if the detected platform is Adobe Air. | Ext | | isBorderBox : Boolean True if the detected browser is Internet Explorer running in non-strict mode. | Ext | | isChrome : Boolean True if the detected browser is Chrome. | Ext | | isGecko : Boolean True if the detected browser uses the Gecko layout engine (e.g. Mozilla, Firefox). | Ext | | isGecko2 : Boolean True if the detected browser uses a pre-Gecko 1.9 layout engine (e.g. Firefox 2.x). | Ext | | isGecko3 : Boolean True if the detected browser uses a Gecko 1.9+ layout engine (e.g. Firefox 3.x). | Ext | | isIE : Boolean True if the detected browser is Internet Explorer. | Ext | | isIE6 : Boolean True if the detected browser is Internet Explorer 6.x. | Ext | | isIE7 : Boolean True if the detected browser is Internet Explorer 7.x. | Ext | | isIE8 : Boolean True if the detected browser is Internet Explorer 8.x. | Ext | | isLinux : Boolean True if the detected platform is Linux. | Ext | | isMac : Boolean True if the detected platform is Mac OS. | Ext | | isOpera : Boolean True if the detected browser is Opera. | Ext | | isReady : Boolean True when the document is fully initialized and ready for action | Ext | | isSafari : Boolean True if the detected browser is Safari. | Ext | | isSafari2 : Boolean True if the detected browser is Safari 2.x. | Ext | | isSafari3 : Boolean True if the detected browser is Safari 3.x. | Ext | | isSafari4 : Boolean True if the detected browser is Safari 4.x. | Ext | | isSecure : Boolean True if the page is running over SSL | Ext | | isStrict : Boolean True if the browser is in strict (standards-compliant) mode, as opposed to quirks mode | Ext | | isWebKit : Boolean True if the detected browser uses WebKit. | Ext | | isWindows : Boolean True if the detected platform is Windows. | Ext | | useShims : BooleanBy default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
you may wa... By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
you may want to set this to true. | Ext | | ux : Object Namespace alloted for extensions to the framework. | Ext | | version : String The version of the framework | Ext |
Public Methods|
| addBehaviors( Object obj )
:
@@ -63,87 +63,87 @@ passed into this function in a single call as separate arguments.Attempts to destroy and then remove a set of named properties of the passed object. Attempts to destroy and then remove a set of named properties of the passed object. Parameters:o : ObjectThe object (most likely a Component) who's properties you wish to destroy. arg1 : MixedThe name of the property to destroy and remove from the object. etc... : MixedMore property names to destroy and remove. Returns: | Ext | | each( Array/NodeList/Mixed array , Function fn , Object scope )
:
- SeeIterates an array calling the supplied function. Iterates an array calling the supplied function. | Ext | | encode( Mixed o )
:
StringShorthand for Ext.util.JSON.encode | Ext | | escapeRe( String str )
:
- StringEscapes the passed string for use in a regular expression Escapes the passed string for use in a regular expression | Ext | | extend( Function subclass , Object overrides )
- :
- FunctionExtends one class to create a subclass and optionally overrides members with the passed literal. This method
-also ad... Extends one class to create a subclass and optionally overrides members with the passed literal. This method
-also adds the function "override()" to the subclass that can be used to override members of the class.
-For example, to create a subclass of Ext GridPanel:
- MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
- constructor: function(config) {
-
-// Create configuration for this Grid.
- var store = new Ext.data.Store({...});
- var colModel = new Ext.grid.ColumnModel({...});
-
-// Create a new config object containing our computed properties
-// *plus* whatever was in the config parameter.
- config = Ext.apply({
- store: store,
- colModel: colModel
- }, config);
-
- MyGridPanel.superclass.constructor.call(this, config);
-
-// Your postprocessing here
- },
-
- yourMethod: function() {
- // etc.
- }
-});
- This function also supports a 3-argument call in which the subclass's constructor is
-passed as an argument. In this form, the parameters are as follows:
-
-subclass : Function The subclass constructor.
-superclass : Function The constructor of class being extended
-overrides : Object A literal with members which are copied into the subclass's
-prototype, and are therefore shared among all instances of the new class.
- | Ext | | flatten( Array arr )
+ StringEscapes the passed string for use in a regular expression Escapes the passed string for use in a regular expression | Ext | | extend( Function superclass , Object overrides )
+ :
+ FunctionExtends one class to create a subclass and optionally overrides members with the passed literal. This method
+also add... Extends one class to create a subclass and optionally overrides members with the passed literal. This method
+also adds the function "override()" to the subclass that can be used to override members of the class.
+For example, to create a subclass of Ext GridPanel:
+ MyGridPanel = Ext.extend(Ext.grid.GridPanel, {
+ constructor: function(config) {
+
+// Create configuration for this Grid.
+ var store = new Ext.data.Store({...});
+ var colModel = new Ext.grid.ColumnModel({...});
+
+// Create a new config object containing our computed properties
+// *plus* whatever was in the config parameter.
+ config = Ext.apply({
+ store: store,
+ colModel: colModel
+ }, config);
+
+ MyGridPanel.superclass.constructor.call(this, config);
+
+// Your postprocessing here
+ },
+
+ yourMethod: function() {
+ // etc.
+ }
+});
+ This function also supports a 3-argument call in which the subclass's constructor is
+passed as an argument. In this form, the parameters are as follows:
+
+subclass : Function The subclass constructor.
+superclass : Function The constructor of class being extended
+overrides : Object A literal with members which are copied into the subclass's
+prototype, and are therefore shared among all instances of the new class.
+ | Ext | | flatten( Array arr )
:
ArrayRecursively flattens into 1-d Array. Injects Arrays inline. Recursively flattens into 1-d Array. Injects Arrays inline. Parameters:arr : ArrayThe array to flatten Returns: | Ext | | fly( String/HTMLElement el , [String named ] )
:
- ElementGets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to t... Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
-the dom node can be overwritten by other code. Shorthand of Ext.Element.fly
- Use this to make one-time references to DOM elements which are not going to be accessed again either by
-application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get
-will be more appropriate to take advantage of the caching provided by the Ext.Element class. Parameters:el : String/HTMLElementThe dom node or id named : String(optional) Allows for creation of named reusable flyweights to prevent conflicts
+ Element Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to t... Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -
+the dom node can be overwritten by other code. Shorthand of Ext.Element.fly
+ Use this to make one-time references to DOM elements which are not going to be accessed again either by
+application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get
+will be more appropriate to take advantage of the caching provided by the Ext.Element class.
| Ext | | get( Mixed el )
:
- ElementRetrieves Ext.Element objects.
-This method does not retrieve Components. This method
-retrieves Ext.Element objects ... Retrieves Ext.Element objects.
- This method does not retrieve Components. This method
-retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by
-its ID, use Ext.ComponentMgr.get.
- Uses simple caching to consistently return the same object. Automatically fixes if an
-object was recreated with the same id via AJAX or DOM.
+ Element Retrieves Ext.Element objects.
+This method does not retrieve Components. This method
+retrieves Ext.Element objects wh... Retrieves Ext.Element objects.
+ This method does not retrieve Components. This method
+retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by
+its ID, use Ext.ComponentMgr.get.
+ Uses simple caching to consistently return the same object. Automatically fixes if an
+object was recreated with the same id via AJAX or DOM.
Shorthand of Ext.Element.get | Ext | | getBody()
:
Ext.ElementReturns the current document body as an Ext.Element. Returns the current document body as an Ext.Element. Parameters:Returns:Ext.Element The document body
| Ext | | getCmp( String id )
@@ -155,22 +155,22 @@ Class was found. | Ext
:
Ext.ElementReturns the current HTML document object as an Ext.Element. Returns the current HTML document object as an Ext.Element. | Ext | | getDom( Mixed el )
:
- HTMLElementReturn the dom node for the passed String (id), dom node, or Ext.Element.
-Here are some examples:
-// gets dom node ... Return the dom node for the passed String (id), dom node, or Ext.Element.
+ HTMLElement Return the dom node for the passed String (id), dom node, or Ext.Element.
Here are some examples:
- // gets dom node based on id
-var elDom = Ext.getDom('elId');
-// gets dom node based on the dom node
-var elDom1 = Ext.getDom(elDom);
-
-// If we don't know if we are working with an
-// Ext.Element or a dom node use Ext.getDom
-function(el){
- var dom = Ext.getDom(el);
- // do something with the dom node
-}
- Note: the dom node to be found actually needs to exist (be rendered, etc)
+// gets dom node ba... Return the dom node for the passed String (id), dom node, or Ext.Element.
+Here are some examples:
+ // gets dom node based on id
+var elDom = Ext.getDom('elId');
+// gets dom node based on the dom node
+var elDom1 = Ext.getDom(elDom);
+
+// If we don't know if we are working with an
+// Ext.Element or a dom node use Ext.getDom
+function(el){
+ var dom = Ext.getDom(el);
+ // do something with the dom node
+}
+ Note: the dom node to be found actually needs to exist (be rendered, etc)
when this method is called to be successful. | Ext | | getScrollBarWidth( [Boolean force ] )
:
NumberUtility method for getting the width of the browser scrollbar. This can differ depending on
@@ -193,16 +193,19 @@ Ext.invoke(Ext.query( "p"), "getAttribute", "id");
:
Boolean Returns true if the passed object is a JavaScript date object, otherwise false. Returns true if the passed object is a JavaScript date object, otherwise false. Parameters:object : ObjectThe object to test Returns: | Ext | | isDefined( Mixed value )
:
- BooleanReturns true if the passed value is not undefined. Returns true if the passed value is not undefined. Parameters:value : MixedThe value to test Returns: | Ext | | isEmpty( Mixed value , [Boolean allowBlank ] )
+ BooleanReturns true if the passed value is not undefined. Returns true if the passed value is not undefined. Parameters:value : MixedThe value to test Returns: | Ext | | isElement( Mixed value )
:
- BooleanReturns true if the passed value is empty.
-The value is deemed to be empty if it is<div class="mdetail-params">
-nul... Returns true if the passed value is empty.
- The value is deemed to be empty if it is | Ext | | isEmpty( Mixed value , [Boolean allowBlank ] )
+ :
+ BooleanReturns true if the passed value is empty.
+The value is deemed to be empty if it is<div class="mdetail-params">
+null
+... Returns true if the passed value is empty.
+ The value is deemed to be empty if it is
+- null
+- undefined
+- an empty array
+- a zero length string (Unless the allowBlank parameter is true)
| Ext | | isFunction( Mixed value )
:
BooleanReturns true if the passed value is a JavaScript Function, otherwise false. Returns true if the passed value is a JavaScript Function, otherwise false. Parameters:value : MixedThe value to test Returns: | Ext | | isNumber( Mixed value )
@@ -215,21 +218,21 @@ nul...Returns true if the passed value is empty.
:
Boolean Returns true if the passed value is a string. Returns true if the passed value is a string. Parameters:value : MixedThe value to test Returns: | Ext | | iterate( Object/Array object , Function fn , Object scope )
:
- voidIterates either the elements in an array, or each of the properties in an object.
-Note: If you are only iterating ar... Iterates either the elements in an array, or each of the properties in an object.
- Note: If you are only iterating arrays, it is better to call each. | Ext | | max( Array|NodeList arr , [Function comp ] )
:
ObjectReturns the maximum value in the Array Returns the maximum value in the Array Parameters:arr : Array|NodeListThe Array from which to select the maximum value. comp : Function(optional) a function to perform the comparision which determines maximization.
@@ -240,36 +243,37 @@ If omitted the ">" operator will be used. Note: gt = 1; eq = 0; lt = -1 Returns the minimum value in the Array. Returns the minimum value in the Array. Parameters:arr : Array|NodeListThe Array from which to select the minimum value. comp : Function(optional) a function to perform the comparision which determines minimization.
If omitted the "<" operator will be used. Note: gt = 1; eq = 0; lt = -1 Returns:
| Ext | | namespace( String namespace1 , String namespace2 , String etc )
:
- ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last nod... Creates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last node of a namespace implicitly creates all other nodes. Usage:
- Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
+ ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node... Creates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node of a namespace implicitly creates all other nodes. Usage:
+ Ext.namespace('Company', 'Company.data');
+Ext.namespace('Company.data'); // equivalent and preferable to above syntax
+Company.Widget = function() { ... }
Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns:
| Ext | | ns( String namespace1 , String namespace2 , String etc )
:
- ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last nod... Creates namespaces to be used for scoping variables and classes so that they are not global.
-Specifying the last node of a namespace implicitly creates all other nodes. Usage:
- Ext.namespace('Company', 'Company.data');
-Ext.namespace('Company.data'); // equivalent and preferable to above syntax
-Company.Widget = function() { ... }
+ ObjectCreates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node... Creates namespaces to be used for scoping variables and classes so that they are not global.
+Specifying the last node of a namespace implicitly creates all other nodes. Usage:
+ Ext.namespace('Company', 'Company.data');
+Ext.namespace('Company.data'); // equivalent and preferable to above syntax
+Company.Widget = function() { ... }
Company.data.CustomStore = function(config) { ... }
Parameters:namespace1 : Stringnamespace2 : Stringetc : String Returns:
| Ext | | num( Mixed value , Number defaultValue )
:
NumberUtility method for validating that a value is numeric, returning the specified default value if it is not. Utility method for validating that a value is numeric, returning the specified default value if it is not. Parameters:value : MixedShould be a number, but any type will be handled appropriately defaultValue : NumberThe value to return if the original value is non-numeric Returns: | Ext | | onReady( Function fn , [Object scope ], [boolean options ] )
:
- voidAdds a listener to be notified when the document is ready (before onload and before images are loaded). Shorthand of ... | Ext | | override( Object origclass , Object overrides )
:
- voidAdds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
... Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
-Usage: Ext.override(MyClass, {
- newMethod1: function(){
- // etc.
- },
- newMethod2: function(foo){
- // etc.
- }
-});
Parameters:origclass : ObjectThe class to override overrides : ObjectThe list of functions to add to origClass. This should be specified as an object literal
+ void Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
+... Adds a list of functions to the prototype of an existing class, overwriting any existing methods with the same name.
+Usage: Ext.override(MyClass, {
+ newMethod1: function(){
+ // etc.
+ },
+ newMethod2: function(foo){
+ // etc.
+ }
+});
| Ext | | partition( Array|NodeList arr , [Function truth ] )
:
ArrayPartitions the set into two sets: a true set and a false set.
@@ -307,18 +311,22 @@ may be looked up. cls : ConstructorShorthand for Ext.ComponentMgr.registerType | Ext | | removeNode( HTMLElement node )
:
- voidRemoves a DOM node from the document. The body node will be ignored if passed in. Removes a DOM node from the document. The body node will be ignored if passed in. Parameters:node : HTMLElementThe node to remove Returns: | Ext | | select( String/Array selector , [Boolean unique ], [HTMLElement/String root ] )
+ voidRemoves this element from the document, removes all DOM event listeners, and deletes the cache reference.
+All DOM eve... Removes this element from the document, removes all DOM event listeners, and deletes the cache reference.
+All DOM event listeners are removed from this element. If Ext.enableNestedListenerRemoval is
+true , then DOM event listeners are also removed from all child nodes. The body node
+will be ignored if passed in. Parameters:node : HTMLElementThe node to remove Returns: | Ext | | select( String/Array selector , [HTMLElement/String root ] )
:
CompositeElementLite/CompositeElementSelects elements based on the passed CSS selector to enable Element methods
to be applied to many related elements i... Selects elements based on the passed CSS selector to enable Element methods
to be applied to many related elements in one statement through the returned CompositeElement or
- CompositeElementLite object. Parameters:selector : String/ArrayThe CSS selector or an array of elements unique : Boolean(optional) true to create a unique Ext.Element for each element (defaults to a shared flyweight object) root : HTMLElement/String(optional) The root element of the query or id of the root Returns:CompositeElementLite/CompositeElement
| Ext | | sum( Array arr )
+CompositeElementLite object.Parameters:Returns:CompositeElementLite/CompositeElement
| Ext | | sum( Array arr )
:
NumberCalculates the sum of the Array Calculates the sum of the Array | Ext | | toArray( Iterable the )
:
- (Array)Converts any iterable (numeric indices and a length property) into a true array
-Don't use this on strings. IE doesn'... Converts any iterable (numeric indices and a length property) into a true array
-Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
+ (Array) Converts any iterable (numeric indices and a length property) into a true array
+Don't use this on strings. IE doesn't... Converts any iterable (numeric indices and a length property) into a true array
+Don't use this on strings. IE doesn't support "abc"[0] which this implementation depends on.
For strings, use this instead: "abc".match(/./g) => [a,b,c]; | Ext | | type( Mixed object )
:
StringReturns the type of object that is passed in. If the object passed in is null or undefined it
@@ -340,11 +348,11 @@ return false otherwise it returns one of the following values: Creates a copy of the passed Array, filtered to contain only unique values. Creates a copy of the passed Array, filtered to contain only unique values. Parameters:arr : ArrayThe Array to filter Returns: | Ext | | urlAppend( String url , String s )
:
- (String)Appends content to the query string of a URL, handling logic for whether to place
-a question mark or ampersand. Appends content to the query string of a URL, handling logic for whether to place
+ (String) Appends content to the query string of a URL, handling logic for whether to place
+a question mark or ampersand. Appends content to the query string of a URL, handling logic for whether to place
a question mark or ampersand. Parameters:Returns:(String) The resulting URL
| Ext | | urlDecode( String string , [Boolean overwrite ] )
:
- ObjectTakes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", b... Takes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
+ ObjectTakes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", b... Takes an encoded URL and and converts it to an object. Example: Ext.urlDecode("foo=1&bar=2"); // returns {foo: "1", bar: "2"}
Ext.urlDecode("foo=1&bar=2&bar=3&bar=4", false); // returns {foo: "1", bar: ["2", "3", "4"]}
Parameters:Returns:Object A literal with members
| Ext | | urlEncode( Object o , [String pre ] )
:
StringTakes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". ... Takes an object and converts it to an encoded URL. e.g. Ext.urlEncode({foo: 1, bar: 2}); would return "foo=1&bar=2". Optionally, property values can be arrays, instead of keys and the resulting string that's returned will contain a name/value pair for each array value. | Ext | | value( Mixed value , Mixed defaultValue , [Boolean allowBlank ] )
|
|