Tuesday 7 October 2008

[ExtJs] Call object function from the different js file

=========== bb.js Other js file =========
var uploadPopup = function(){

var win,dlgPopup, nav;

return {
init:function(){
alert('start init');
},{
doSomething:function(){
alert('start do somthing');
}

}
}();

======== aa.js : Call this method object from original js file ========
Ext.get('button2').on('click', function(){
uploadPopup.init();
})

6 comments:

Anonymous said...

Thanks to my father who shared with me about this website, this webpage is
really amazing.

my web site - jocuri online gratis puzzle

Anonymous said...

My spouse and I stumbled over here coming from a different website and thought I might as well check
things out. I like what I see so i am just following you.

Look forward to looking into your web page again.



Feel free to visit my web site; bancuri cu militari

Anonymous said...

Hello colleagues, its fantastic paragraph on the topic of educationand completely explained, keep it up all the time.



My webpage Juegos Online

Anonymous said...

This is very attention-grabbing, You are a very professional blogger.

I've joined your rss feed and look ahead to in search of more of your wonderful post. Additionally, I've shared your web site in my social networks

Feel free to surf to my site: jocuri noi aventura

Anonymous said...

always i used to read smaller articles that also clear their motive, and that
is also happening with this paragraph which I am
reading now.

Feel free to surf to my web blog jocuri pentru copii online cu masini

Anonymous said...

best electronic cigarette, e cigarette forum, best electronic cigarette, ecig forum, vapor cigarette, electronic cigarette