14 Mar 2008 8:43 AM #11
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.
14 Mar 2008 3:29 PM #12
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.
14 Mar 2008 9:19 PM #13
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.
14 Mar 2008 9:22 PM #14
Better to say detachInputFile() returns input element but there are still stray unneeded ems.
15 Mar 2008 2:59 PM #15
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?
15 Mar 2008 3:06 PM #16
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).
15 Mar 2008 3:16 PM #17
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.
15 Mar 2008 3:32 PM #18
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.
4 Apr 2008 6:33 AM #19
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?
4 Apr 2008 6:43 AM #20
- Join Date
- Nov 2007
- Greetings from Sol : Earth : Europe : Germany : MV : Rostock : Südstadt
- Vote Rating
Please have a look at post #8.