1. #101
    Ext JS Premium Member milanz's Avatar
    Join Date
    Aug 2007
    Posts
    47
    Vote Rating
    0
    milanz is on a distinguished road

      0  

    Default


    Quote Originally Posted by joycoder View Post
    thanks first.
    content-type is text/html,format is {success:true}
    In your screenshot the content-type is text/xml not text/html. Are you sure you are setting the header properly?

  2. #102
    Ext User
    Join Date
    Apr 2007
    Posts
    13
    Vote Rating
    0
    joycoder is on a distinguished road

      0  

    Default


    pls see the next pic.
    the problem is jquery-adapter,i get it.

  3. #103
    Sencha User
    Join Date
    Sep 2007
    Posts
    73
    Vote Rating
    0
    hga77 is on a distinguished road

      0  

    Default


    I have two seperate places on my app that require your uploader.

    The first uploader is called within the file assets page. what that means is that in this page, the uploader uploads files to the assets folder.

    The second uploader is called from another page, the video page. Here you can upload videos. The videos are uploaded to the video folder.

    Ofcourse, I am creating a new instance of the uploader, then setting its properties, exactly like your demo page.

    The problem is, for example, lets say I go to the video page, then call the uploader. I uploads videos and they go to the video folder. Works great. Then I leave that and go to the assets section, I call the uploader using the same script to create a new instance. Then I set the properties (eg url etc...). When I upload, it still uploads to the video folder, NOT to the assets folder.

    So basically they are not seperate instances.

    How do I create two seperate instances of your uploader, that have different properties?

    Thanks

  4. #104
    Sencha User MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    493
    Vote Rating
    3
    MaximGB is on a distinguished road

      0  

    Default


    1. Are assets section and video section two tabs on the same dialog, or are they two separate HTML pages?
    2. If they are tabs and you are using getDialog() method, than you'll get dialog singleton, not two separate dialog instances.
    3. You can try to use dialogs setUrl() method to resolve an issue.
    Use the force - read the source.
    My ExtJS extensions can be found here: http://max-bazhenov.com/dev/

  5. #105
    Sencha User
    Join Date
    Sep 2007
    Posts
    73
    Vote Rating
    0
    hga77 is on a distinguished road

      0  

    Default


    They are on the same html page.

    I just need to know how to create two seperate instances.

    Also, this does not happen in Firefox. This problem is only in IE

    Thanks

  6. #106
    Sencha User MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    493
    Vote Rating
    3
    MaximGB is on a distinguished road

      0  

    Default


    I just need to know how to create two seperate instances.
    Like any other Exts basic dialog instances.
    Code:
    var dialog = new Ext.ux.UploadDialog.Dialog(....);
    Use the force - read the source.
    My ExtJS extensions can be found here: http://max-bazhenov.com/dev/

  7. #107
    Ext User
    Join Date
    Sep 2007
    Location
    chile
    Posts
    73
    Vote Rating
    0
    evilized is on a distinguished road

      0  

    Default


    Hi.

    this extension is sooo great, and very usefull... thx fir u great work dude.




    but, i'm having a problem with the upload
    the folders permissions are all ok, set to 777. but ever i see a error upload :S and i dont know the cause of that, please any help can be nice for me .

    (i've the same problem in the local pc )

    my js code

    PHP Code:
    var UploadDialogController = function(){

      
    this.dialog = new Ext.ux.UploadDialog.Dialog('upload-dlg', {
            
    autoCreatetrue,
            
    closablefalse,
            
    collapsiblefalse,
            
    draggabletrue,
            
    minWidth400,      
            
    minHeight200,
            
    modal:true,
            
    width400,
            
    height350,
            
    proxyDragtrue,
            
    resizablefalse,
            
    constraintoviewporttrue,
            
    title'Lista de Archivos.',
            
    url'resources/backend/import.php?do=upload',
            
    reset_on_hidefalse,
            
    allow_close_on_uploadtrue,
            
    upload_autostartfalse,
            
    permitted_extensions: ["csv"]
      });  

      
    this.file_list_tpl = new Ext.Template(
        
    "<div class='file-list-entry'>File {name} successfuly uploaded.</div>"
      
    );
      
      
    this.file_list_tpl.compile();

       
    this.onUploadSuccess = function (dialogfilenameresp_data){
        var 
    parts filename.split(/\/|\\/);
        if (
    parts.length == 1) {
          
    filename parts[0];
        }
        else {
          
    filename parts.pop();
        }
        
    this.file_list_tpl.append('file-list', {namefilename});
      }
          
      
    this.dialog.on('uploadsuccess'this.onUploadSuccess,this);

      
    };

    UploadDialogController.prototype = {
        
    show:function(obj){
            
    this.dialog.show(obj.getEl());
        }

    my PHP code:
    PHP Code:
    <?
    import_request_variables
    ("gp");   

    switch(
    $do){
        case 
    'upload':
            
    UploadFile();
            break;


    function 
    UploadFile()
    {
        if(
    count($_FILES) > 0)
        {
            
    move_uploaded_file(
                
    $_FILES['file']['tmp_name'],
                
    PATH.'resources/backend/tmp/'.$_FILES['file']['name']
            );
            echo 
    '{"success": true, "error": "ok"}';
        }   
    }
    ?>
    Attached Images
    la musica es absolutamente necesaria para la vida.

  8. #108
    Sencha User MaximGB's Avatar
    Join Date
    Jun 2007
    Location
    Moscow, Russia
    Posts
    493
    Vote Rating
    3
    MaximGB is on a distinguished road

      0  

    Default


    What's the result of the move_uploaded_file() if it's false then you should go check php's error log.
    Use the force - read the source.
    My ExtJS extensions can be found here: http://max-bazhenov.com/dev/

  9. #109
    Ext User
    Join Date
    Sep 2007
    Posts
    123
    Vote Rating
    0
    DAddYE is on a distinguished road

      0  

    Default


    Not work in Safari.

  10. #110
    Ext User
    Join Date
    Sep 2007
    Location
    chile
    Posts
    73
    Vote Rating
    0
    evilized is on a distinguished road

      0  

    Default


    i was solved my problem. ( a PHP ; :P )

    thx u for the extension dude, it is really a great tool.
    la musica es absolutamente necesaria para la vida.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar