Templates y Temas para ExtJS y Sencha Touch Bleext!
Bleextop! un desktop OpenSource para Ext4 y CodeIgniter http://bit.ly/pUwLJO
como invocar un js
  • Vote Up0Vote Down jcorralesjcorrales October 2009
    Posts: 3
    Hola amigos, un saludo muy especial
    necesito ayuda respecto a como se realiza un llamado desde el desktop a un .js, de la unica forma que me ha funcionado es copiando el codigo del js dentro del desktop.
    osea quiero desde el desktop invocar ventanas
    en el siguiente codigo se ve como desde el handler invocan una funcion que llama una ventana, lo que necesito es que no sea una funcion sino un llamado a un .js
    ej.
    MyDesktop.costo = Ext.extend(Ext.app.Module, {
    id:'costo-win',
    init : function(){
    this.launcher = {
    text: '<b>costo</b>',
    iconCls:'icon-grid',
    handler : this.createWindow1,
    scope: this
    }
    },

    createWindow1 : function(){

    var desktop = this.app.getDesktop();
    var win = desktop.getWindow('costo-win');
    if(!win){
    win = desktop.createWindow1({


    title: 'PRUEBAS',
    width:700,
    height:250,
    bodyStyle:'background-color:#fff;padding: 2px',
    collapsible:true,
    tbar:toolbar, // <--- Toolbar
    maximizable: true,
    maskDisabled: true,
    items:this.form,
    id: 'date-win',
    iconCls: 'icon-grid',
    shim:false,
    animCollapse:false,
    constrainHeader:true,
    layout: 'column',

    })


    }
    win.show();
    }
    });

    muchas gracias por la atencion prestada
    jaime corrales.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Twitter

Sign In Apply for Membership

Poll

No poll attached to this discussion.