1. #11
    Sencha User loeppky's Avatar
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    230
    Vote Rating
    0
    loeppky is on a distinguished road

      0  

    Default


    dawesi: I don't see what the problem is? What do you mean by "they both render the same"? The debug version below shows the input file "Browse" button not being hidden.

  2. #12
    Sencha User loeppky's Avatar
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    230
    Vote Rating
    0
    loeppky is on a distinguished road

      0  

    Default


    t34: Once again, MaximGB comes up huge. He had some ideas on a great starting point for making tabbing work with the BrowseButton. I have incorporated, moddified (slightly), and tested his suggestions. Go ahead and test if out on the demo page: http://loeppky.com/steven/code/samples/BrowseButton/.

    Notes: you may have to clear your cache to pick up the newest version of BrowseButton.js. Also, as stated in the original post, reverse-tabbing (shift+tab) doesn't work once one has tabbed to the BrowseButon. One has to tab twice to get past the BrowseButton.

  3. #13
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Hi loeppky,

    is there any reason why inputs are wrapped in <em></em>? I mean detachInputFile() returns input element wrapped in em. It just complicates my code as I need to cleanup those stray ems.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  4. #14
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Better to say detachInputFile() returns input element but there are still stray unneeded ems.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  5. #15
    Sencha User loeppky's Avatar
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    230
    Vote Rating
    0
    loeppky is on a distinguished road

      0  

    Default


    jsakalos: I don't know what the root issue is, but I assume it's a browser or Ext thing. When I create the input file element in the createInputFile method, you'll notice that the line right after is this.inputFileEl = this.inputFileEl.child('input') || this.inputFileEl. This is done because the create method sometimes returns <em><input type="file/></em> verses <input type="file/>. Again, I don't know why this is, but the detachInputFile method should just return the input file, not the input file wrapped in em tags. Is that what you're seeing? Is your concern then just the left over em tags?

  6. #16
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Yeah, detachInputFile always returns <input></input>. The root of the issue is that I want to get rid of those unnecessary <em></em> that would lead to memory leak in the long run. (Tiny leak, but why not to cleanup if we know about it).
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  7. #17
    Sencha User loeppky's Avatar
    Join Date
    May 2007
    Location
    Seattle, WA
    Posts
    230
    Vote Rating
    0
    loeppky is on a distinguished road

      0  

    Default


    I have family coming over soon and won't be able to look into this until Monday. If you want to take care of it, and send me the fix, I'll get it posted Monday when I head into the office.

  8. #18
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,557
    Vote Rating
    383
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Well, it is not that urgent as it doesn't prevent functionality of the browser button. Anyway, I'm not going into it - author's debugging is always most effective.

    Take it easy, not urgent problem.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  9. #19
    Touch Premium Member
    Join Date
    Mar 2007
    Posts
    60
    Vote Rating
    1
    Ramsay is on a distinguished road

      0  

    Default


    I'd like to be able to hit the browse button, choose a file, and as soon as I hit ok have that file uploaded by XHR... any pointers on how I could do this?

  10. #20
    Ext JS Premium Member
    Join Date
    Nov 2007
    Location
    Greetings from Sol : Earth : Europe : Germany : MV : Rostock : S├╝dstadt
    Posts
    38
    Vote Rating
    0
    t34 is on a distinguished road

      0  

    Default


    Please have a look at post #8.