PDA

View Full Version : ext style GoogleChrome DEMO FIXED



koko2589
11 Jun 2009, 5:29 AM
http://up83.siz.co.il/img2/qhmmjg3mtvjo.jpg (http://up83.siz.co.il/up2/qhmmjg3mtvjo.jpg)

demo
http://itoto1.com/ext/examples/extGoogleChrome/extGoogleChrome.html

RemoveAll not working i dont now to fix it
i do like this

text:'RemoveAll', handler: function() {
Ext.getCmp("column1").removeAll(true);
}

id:'column1',

Animal
11 Jun 2009, 5:45 AM
I get

http://i131.photobucket.com/albums/p286/TimeTrialAnimal/crappy.jpg

koko2589
11 Jun 2009, 5:48 AM
look my cod

<html>
<head>
<title>Accordion Layout</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
<!-- GC -->
<!-- LIBS -->
<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
<!-- ENDLIBS -->
<script type="text/javascript" src="../../ext-all.js"></script>
<script type="text/javascript" src="ext-all-debug.js"></script>
<script type="text/javascript" src="Ext.ux.IconAlive.js"></script>
<link rel="stylesheet" type="text/css" href="icons.css"/>
<style type="text/css">
html, body {
font: normal 12px verdana;
margin: 0;
padding: 0;
border: 0 none;
overflow: hidden;
height: 100%;
}
.empty .x-panel-body {
padding-top:20px;
text-align:center;
font-style:italic;
color: gray;
font-size:11px;
}
</style>
<script type="text/javascript">
Ext.onReady(function() {
var item1 = new Ext.Panel({
title: 'Accordion Item 1',
html: '&lt;empty panel&gt;',
cls:'empty'
});
var item2 = new Ext.Panel({
title: 'Accordion Item 2',
html: '&lt;empty panel&gt;',
cls:'empty'
});
var item3 = new Ext.Panel({
title: 'Accordion Item 3',
html: '&lt;empty panel&gt;',
cls:'empty'
});
var item4 = new Ext.Panel({
title: 'Accordion Item 4',
html: '&lt;empty panel&gt;',
cls:'empty'
});
var item5 = new Ext.Panel({
title: 'Accordion Item 5',
html: '&lt;empty panel&gt;',
cls:'empty'
});
var accordion = new Ext.Panel({
region:'west',
margins:'5 0 5 5',
split:true,
width: 210,
layout:'accordion',
items: [panelMenu1, item2, item3, item4, item5]
});
var viewport = new Ext.Viewport({
layout:'border',
items:[
accordion, {
region:'center',
margins:'5 5 5 0',
cls:'empty',
bodyStyle:'background:#ffffff',tbar:[{

text:'RemoveAll', handler: function() {
Ext.getCmp("column1").removeAll(true);
}




}],
layout:'fit',
id:'column1',

title:'extGoogleChrome',
cls:'iconAlive',
autoScroll:true,
defaults:{
xtype:'iconalive'
},
items:[
{


title:'google',src:'gm.jpg', listeners:{
click:function(icon,ev) { window.open('http://www.google.co.il/', '_blank') },
scope:this


}
}]

}]
});
});

//-----------------------------------------------------------------------------------//
//------------------------------------MenuPanel--------------------------------//
//-----------------------------------------------------------------------------------//

Ext.ux.MenuPanel = function(config) {
Ext.ux.MenuPanel.superclass.constructor.call(this, config);
if((typeof this.menu =='undefined') || this.menu == null)
throw 'you need to specify an instance of Menu in your cfg object';
this.menu.shadow = false;//We don't need shadow, do we?Besides, without this IE6 complain so...
}


Ext.extend(Ext.ux.MenuPanel, Ext.Panel, {

afterRender: function(){
Ext.ux.MenuPanel.superclass.afterRender.call(this);
var el = this.menu.getEl();
el.getShim();
el.hideShim();
this.body.appendChild(el);
el.clearPositioning('auto');
el.setWidth('100%');
el.applyStyles({
border: '0px'
});
el.show();
},
border:false,
getMenu: function(){
return this.menu;
},

//private
beforeDestroy: function(){
Ext.ux.MenuPanel.superclass.beforeDestroy.call(this);
this.menu.destroy();
}
});
Ext.reg('menupanel', Ext.ux.MenuPanel);

//-----------------------------------------------------------------------------------//
//------------------------------------menu1-------------------------------//
//-----------------------------------------------------------------------------------//

var menu1 = new Ext.menu.Menu({
id: 'mainMenu1',
items: [
{

text: 'open extjs.net', listeners:{
click:function(icon,ev) { window.open('http://extjs.net/', '_blank') },
scope:this


},
iconCls: 'calendar',handler: function () {

var c= Ext.getCmp('column1');
if (!c.findById('tasks-complete2')) {
c.add({
title:'http://extjs.net/', src:'ext.jpg', id:'tasks-complete2',
listeners:{
click:function(icon,ev) { window.open('http://extjs.net/', '_blank') },
scope:this


},
tooltip:'User Management and Groups'


});
c.doLayout();
}}
},{
text: 'chooser', listeners:{
click:function(icon,ev) { window.open('http://extjs.net/deploy/dev/examples/view/chooser.html', '_blank') },
scope:this


},
iconCls: 'calendar',handler: function () {

var c= Ext.getCmp('column1');
if (!c.findById('chooser')) {
c.add({
title:'chooser.html', src:'chooser.gif', id:'chooser',
listeners:{
click:function(icon,ev) { window.open('http://extjs.net/deploy/dev/examples/view/chooser.html', '_blank') },
scope:this


},
tooltip:'User Management and Groups'


});
c.doLayout();
}}

}
]
});

var panelMenu1 = {
xtype: 'menupanel',
title: 'click the link',
collapsible:true,
menu: menu1
};
</script>
</head>
<body>
<script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
</body>
</html>

Animal
11 Jun 2009, 6:14 AM
Look my cod!

http://kids.mdbc.gov.au/__data/page/755/murray_cod.jpg

koko2589
11 Jun 2009, 6:18 AM
ITS WORK IN EXPLORER
http://up83.siz.co.il/up2/qhmmjg3mtvjo.jpg

Animal
11 Jun 2009, 6:19 AM
I only use IE to give the final test to the product I work on. That's just because my boss makes me. Otherwise, I don't touch it.

VinylFox
11 Jun 2009, 6:25 AM
@Animal - thanks for providing me with a random outburst of laughter today. Cod - simply brilliant.

JamesC
11 Jun 2009, 7:35 AM
I'd ditto the random outburst of laughter

koko2589
11 Jun 2009, 8:13 AM
its like here when click on link its shoew what you click
http://netex.mako.co.il/


continue to to laugh at cod :)):)) i dont now eunglish so i dont anderstand

this http://itoto1.com/ext/examples/extGoogleChrome/extGoogleChrome.html
work on ext js 2
not work on ext js 3

>:):D

tryanDLS
11 Jun 2009, 9:09 AM
Moving this to Help. The Examples forum is for displaying working samples, not debugging your code.

koko2589
11 Jun 2009, 12:21 PM
demo fixed here
http://extjs.net/forum/showthread.php?t=71084