Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Server folder browser

LEGEND ,
Jul 19, 2012 Jul 19, 2012

Hello, everyone.

I'm looking to put a folder browser for the server in a .cfm page (don't worry.. it will be secure access, not public access) similar to what is in CFAdmin for browsing folders (like in Collections and whatnot.)

Has anyone seen or heard of code that will do this?

Thanks,

^_^

1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012

Well... yes.  Like you said: the code in CFAdmin.  If that suits your purposes, why don't you just reuse the same control?

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012

I'd like to, but the CFAdmin files are encrypted and I don't know how to view the code.

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012

You don't need to see the CFAdmin files, the file picker is a client side applet.  All you need to do is view the source of the page, and follow how the applet has been called...

--
Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012

Thank you, Adam.  I'll give that a shot and report back.

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012

Thank you, Adam.  I'll give that a shot and report back.

Cool.  I hasten to add I've never tried this, but it looks fairly striaght fwd.  First things first, just lift the <applet> code striaght out of the page's source, stick it in your own form code and run it to make sure it works outwith the context of CFAdmin.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 19, 2012 Jul 19, 2012
LATEST

Brilliant!  I had to (of course) copy/paste the .jar file into the same folder as the .cfm I'm working on and modify the location in the applet tag, and then tweak it a lot, but it's working!

Also had to code javascript to pass along things like field name/id and other stuff, but it's working quite well.

NOTE: I have two form fields that are utilizing this, and noticed that if you open both of them without closing the other, the most recent one opened is the only one that will work; the first one opened will not "select" anything.  So, in order to avoid this issue, I use javascript to "hide" the buttons when the popup is opened, then use javascript in the child window to "unhide" the buttons when the popup is either submit or canceled.

Thank you for the suggestion, Adam!

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources