1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    8
    Vote Rating
    0
    Mykle is on a distinguished road

      0  

    Default AIR ExtJS Upload file

    AIR ExtJS Upload file


    Please help me. This my code from AIR application
    var winVOV = new Ext.Window({
    height: 100,
    width: 380,
    title: '...',
    clossable: true,
    draggable: true,
    resizable: false,
    layout: 'form',
    items: new Ext.FormPanel({
    id: 'fp_v',
    fileUpload: true,
    autoHeight: true,
    autoWidth: true,
    items: [
    {
    xtype: 'fileuploadfield',
    id: 'form-file',
    emptyText: '...',
    fieldLabel: 'XLS file',
    width: 250,
    name: 'fn',
    buttonCfg: {
    text: '',
    iconCls: 'upload-icon'
    }
    }],
    buttons: [{
    text: '...',
    handler: function(){
    if(Ext.getCmp('fp_v').getForm().isValid()){
    Ext.getCmp('fp_v').getForm().submit({
    url: server + 'data/get_data.php?act=exec_vov',
    waitMsg: '...',
    success: function(form, action,ss,mm){
    alert(action.result.fn);

    Here an error. Variable action.result not found.

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    8
    Vote Rating
    0
    Mykle is on a distinguished road

      0  

    Default AIR ExtJS Upload file

    AIR ExtJS Upload file


    Please help me. This my code from AIR application
    var winVOV = new Ext.Window({
    height: 100,
    width: 380,
    title: '...',
    clossable: true,
    draggable: true,
    resizable: false,
    layout: 'form',
    items: new Ext.FormPanel({
    id: 'fp_v',
    fileUpload: true,
    autoHeight: true,
    autoWidth: true,
    items: [
    {
    xtype: 'fileuploadfield',
    id: 'form-file',
    emptyText: '...',
    fieldLabel: 'XLS file',
    width: 250,
    name: 'fn',
    buttonCfg: {
    text: '',
    iconCls: 'upload-icon'
    }
    }],
    buttons: [{
    text: '...',
    handler: function(){
    if(Ext.getCmp('fp_v').getForm().isValid()){
    Ext.getCmp('fp_v').getForm().submit({
    url: server + 'data/get_data.php?act=exec_vov',
    waitMsg: '...',
    success: function(form, action,ss,mm){
    alert(action.result.fn);

    Here an error. Variable action.result not found.

  3. #3
    Ext User
    Join Date
    Sep 2008
    Posts
    8
    Vote Rating
    0
    Mykle is on a distinguished road

      0  

    Default AIR ExtJS Upload file

    AIR ExtJS Upload file


    Please help me. This my code from AIR application
    var winVOV = new Ext.Window({
    height: 100,
    width: 380,
    title: '...',
    clossable: true,
    draggable: true,
    resizable: false,
    layout: 'form',
    items: new Ext.FormPanel({
    id: 'fp_v',
    fileUpload: true,
    autoHeight: true,
    autoWidth: true,
    items: [
    {
    xtype: 'fileuploadfield',
    id: 'form-file',
    emptyText: '...',
    fieldLabel: 'XLS file',
    width: 250,
    name: 'fn',
    buttonCfg: {
    text: '',
    iconCls: 'upload-icon'
    }
    }],
    buttons: [{
    text: '...',
    handler: function(){
    if(Ext.getCmp('fp_v').getForm().isValid()){
    Ext.getCmp('fp_v').getForm().submit({
    url: server + 'data/get_data.php?act=exec_vov',
    waitMsg: '...',
    success: function(form, action,ss,mm){
    alert(action.result.fn);

    Here an error. Variable action.result not found.




Tags for this Thread