PDA

View Full Version : [HELP] Call function



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 !

jay@moduscreate.com
16 Sep 2010, 5:27 AM
Why are you placing your code inside of the Ext.ux (User Extension) Namespace?

What is "JavaScript AS"?

I'm very confused as to what you're looking to do.

blade8x
16 Sep 2010, 8:36 PM
Sorry about some my error shown. Simple, I want make effect slide that called from other device through javascript code