|
sam0510
|
 |
« on: June 07, 2009, 09:11:08 AM » |
|
i've try to show dialog with this :
linb.ComFactory.getCom("module_name",function(){ var ns=this; SPA.pane.append(ns.getUIComponents(),true); });
it act when tree bar selected and work , but when i want to show others module the module showed before disapper , i want to call module to work multitasking....
|
|
|
|
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #1 on: June 07, 2009, 06:54:28 PM » |
|
In the current version, getCom is for singleton instance. You can youse 'newCom' in this case.
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #2 on: June 08, 2009, 08:41:42 AM » |
|
i've made some change like this : linb.ComFactory.getCom(xgetmodule,function(){ var ns=this; ns.show(SPA.layout6.getPanel('main')); //SPA.layout6.getPanel('main').append(ns.getUIComponents(),true); }); and its work for multi tasking. And now when it was close / destroy and i want to call the module again, i've get error : D.box is undefined http://localhost/sigma-2.0.2/runtime/jsLinb/js/linb-all.jsLine 1 Can U help me with these error ?
|
|
|
|
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #3 on: June 08, 2009, 05:46:21 PM » |
|
If you do not want to use 'newCom' function, you can use 'setCom' to clear the com cache:
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #4 on: June 08, 2009, 06:35:11 PM » |
|
thanks...it's work...
now how to make dialog show in top level ( not as modal ) when they're just call ?
|
|
|
|
« Last Edit: June 08, 2009, 06:36:44 PM by sam0510 »
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #5 on: June 08, 2009, 09:49:29 PM » |
|
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #6 on: June 22, 2009, 10:22:54 AM » |
|
it still dont work to show as top level......any idea ?
|
|
|
|
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #7 on: June 22, 2009, 05:18:23 PM » |
|
And, you append the dialog to a div. Is the div in the top level?
|
|
|
|
« Last Edit: June 22, 2009, 05:21:45 PM by linb »
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #8 on: June 22, 2009, 11:41:43 PM » |
|
here is my index.js still dont get with what i want to...  the scenario is when index.js on ready , it will call module1 / another class ( i use dialog as container ) and the class callled shown as top level ( activate ).
|
|
|
|
« Last Edit: June 23, 2009, 12:00:20 AM by sam0510 »
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #9 on: June 23, 2009, 01:33:11 AM » |
|
If you can upload a runable package(zip), I'll help you to debug it.
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #10 on: June 23, 2009, 10:09:53 AM » |
|
here's my projects...thanks before
|
|
|
|
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #11 on: June 23, 2009, 06:32:28 PM » |
|
Copy the below code to replace your index.js:
I still don't know why you show the login dialog into a Div.
Usually, It'll be:
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #12 on: June 23, 2009, 07:38:25 PM » |
|
its' work...this is what i want...
about show in div / block ,i just think to make cover area for dialog when it's show , drag and or maximaze...
Next... 1. how to set animation with "fromregion:profile.root.css(true)" like in the sample when frm_login show/destroy
2. how to know alias name from module that has spesified .... for example frm_login in module1 in project.
thanks
|
|
|
|
« Last Edit: June 23, 2009, 08:24:36 PM by sam0510 »
|
Logged
|
|
|
|
|
linb
|
 |
« Reply #13 on: June 23, 2009, 11:16:00 PM » |
|
And, "frm_login" is the definition of your own.
|
|
|
|
|
Logged
|
|
|
|
|
sam0510
|
 |
« Reply #14 on: June 29, 2009, 06:06:01 PM » |
|
is is posible to change "frm_login" above with return variable that i've get from ns.getcomponents().get(0).alias ?
|
|
|
|
|
Logged
|
|
|
|
|