FrameworkScanner: Global namespace checker

http://mankz.com/code/globalcheck.htm

An application to see global namespace pollution that the javascript frameworks cause. You can check for conflicts before usings different libraries together.

Bookmark and Share

Top10 Hardware OC Yarışması

occontest

Eğer Türkiye sınırları içerisindeyseniz ve overclocking meraklısıysanız tatmin edici ödüllerin olduğu bu yarışmaya katılmanızı öneririm. ;)

Bookmark and Share

Items Per Page Plugin for ExtJS

It is a plugin to change dynamically the number of items displayed in a grid.

Plugin code:

/**
* ExtJS component to display number of items per page
*
* @copyright       2009 Erhan Abay
* @author          Erhan Abay
* @version         $Revision$
* @lastmodified    $Date$
*/
Ext.ux.PerPageField = Ext.extend(Object, {
beforeText : '',
afterText : 'items per page',
constructor : function(config) {
Ext.apply(this, config);
},
init : function(grid) {
this.grid = grid;
this.grid.on({
render : function() {
this.grid.bottomToolbar.add(['-', '-',
this.beforeText, this.combo,
this.afterText]);
},
scope : this
});
this.combo = new Ext.form.ComboBox({
store : ['5', '10', '20', '50', '100', '200'],
mode : 'local',
triggerAction : 'all',
width : 50,
listClass : 'x-combo-list-small',
maskRe : /^[0-9]$/,
value : grid.bottomToolbar.pageSize,
listeners : {
'collapse' : function(f) {
this.triggerEvent(f);
},
'specialkey' : function(f, e) {
if (e.getKey() == e.ENTER) {
this.triggerEvent(f);
}
},
scope : this
}
});
},
triggerEvent : function(f) {
var o = {
start : 0
};
var v = parseInt(f.getRawValue());
this.grid.store.baseParams = this.grid.store.baseParams || {};
this.grid.store.baseParams['limit'] = v;
this.grid.bottomToolbar.pageSize = v;
this.grid.store.reload({
params : o
});
}
});
Ext.preg('perpagefield', Ext.ux.PerPageField);

Usage:

var grid = new Ext.grid.GridPanel({
...
plugins: [{
ptype: 'perpagefield',
beforeText: '',
afterText: ''
}],
...
});</pre>
Bookmark and Share
Page 3 of 141234510...Last »