Friday, September 10th, 2010
Extjs

Decode url in EXTJS

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 = ...

More Extjs

Encode url in EXTJS

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 ...

Create array from JSON string in EXTJS

This example demonstrates how to re-create the array based on its JSON string. Take the JSON representation of foodArray:var foodJson = ...

Encode array to JSON in EXTJS

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 dropdown select options using EXTJS

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 elements by class name in EXTJS

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 using EXTJS

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) ...

Get DOM nodes and elements using EXTJS

We can use the Ext.get(element) or Ext.Element.get(element) to get a reference to any element in the document. This function can be ...

Display alert box using ext-js

...

eXTReMe Tracker