blade8x
15 Sep 2010, 8:02 PM
hello
I have some simple senchar code to slide form
Ext.ux.UniversalUI = Ext.extend(Ext.Panel, {
fullscreen: true,
layout: 'card',
initComponent : function() {
this.slideButton1 = new Ext.Button({
hidden: false,
text: 'Slide',
ui: 'action',
handler: this.onSlideButtonTap1,
scope: this
});
this.navigationBar = new Ext.Toolbar({
ui: 'dark',
dock: 'left',
title: this.title,
items: [this.slideButton1]
});
this.dockedItems = this.dockedItems || [];
this.dockedItems.unshift(this.navigationBar);
Ext.ux.UniversalUI.superclass.initComponent.call(this);
}
onSlideButtonTap1 : function() {
this.mypanel = new Ext.Panel({
cls: 'mypanel',
html: 'HELLO',
});
this.setCard(this.mypanel, {type: 'slide', direction: 'left'});
},
});
Ext.setup({
onReady: function() {
new Ext.ux.UniversalUI({
})
}
});
Instead, when you click button "Slide", then slide effect started. I want call function "onSlideButtonTap1" by regular javascript AS
<script type="text/javascript">
function callback(){
"CALL onSlideButtonTap1 HERE";
}
</script>
Can you help my issues ?
THANK YOU !
I have some simple senchar code to slide form
Ext.ux.UniversalUI = Ext.extend(Ext.Panel, {
fullscreen: true,
layout: 'card',
initComponent : function() {
this.slideButton1 = new Ext.Button({
hidden: false,
text: 'Slide',
ui: 'action',
handler: this.onSlideButtonTap1,
scope: this
});
this.navigationBar = new Ext.Toolbar({
ui: 'dark',
dock: 'left',
title: this.title,
items: [this.slideButton1]
});
this.dockedItems = this.dockedItems || [];
this.dockedItems.unshift(this.navigationBar);
Ext.ux.UniversalUI.superclass.initComponent.call(this);
}
onSlideButtonTap1 : function() {
this.mypanel = new Ext.Panel({
cls: 'mypanel',
html: 'HELLO',
});
this.setCard(this.mypanel, {type: 'slide', direction: 'left'});
},
});
Ext.setup({
onReady: function() {
new Ext.ux.UniversalUI({
})
}
});
Instead, when you click button "Slide", then slide effect started. I want call function "onSlideButtonTap1" by regular javascript AS
<script type="text/javascript">
function callback(){
"CALL onSlideButtonTap1 HERE";
}
</script>
Can you help my issues ?
THANK YOU !