We can decode urls in EXTJS using the Ext.urlDecode() function. if encodedUrl is an encoded URL query string like food1=Dal&food2=Naan&food3=Ricewe can an object as follows:var selectedFood = ...
We can encode urls in EXTJS using the Ext.urlEncode() function.Example: Sample Object:var selectedFood = {food1:'Dal', food2:'Naan',food3:'Rice'};Convert the object to URL data:var ...
1. Create an array called foodArray:var foodArray = new Array();2. Add values in the array:foodArray[0] = 'Dal'; foodArray[1] = 'Naan'; foodArray[2] = 'Rice';3. ...
Get select options from dropdown in EXTJSExt.BLANK_IMAGE_URL = '../ext/images/default/s.gif';Ext.onReady(function() { var select = Ext.get('states-select'); Ext.each(select.options, function(item,index) { document.write(index + ''); }); });AL AZ IL CA
Get all elements by class in pageExt.BLANK_IMAGE_URL = '../ext/images/default/s.gif';Ext.onReady(function() { // Get all the elements with specified class. var classLinks = Ext.query('.item'); Ext.each(classLinks, ...
Get all div elements in pageExt.BLANK_IMAGE_URL = '../ext/images/default/s.gif';Ext.onReady(function() { // Get all the div elements. var nodes = Ext.query('div'); Ext.each(nodes, function(item, index, allItems) ...