Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Browse folder/directory only and not files

 
rahulJ james
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to browse a directory rather than files in java script. I saw similar quesitons in this forum but I do not see a complete solution to this.
Can someone advise.

Or if there is an alternate way to accomplish this functionality
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't browse anything in JavaScript. If you are really asking about the file input control, then sure, you can browse folders to your heart's content. but you can only select a file.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PLUS modern day browsers do not send up the paths to the files/folders to the server so it is useless.

Eric
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't with Javascript, but you could write your own applet and make your own "directory" browser.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming that the applet is signed and that the user gives permission.
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Assuming that the applet is signed and that the user gives permission.

Of course; that's implied
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic