Welcome Guest Search | Active Topics | Sign In | Register

File Explorer get the Selected Filename Options
dios
Posted: Thursday, October 2, 2008 1:22:22 AM
Rank: Member
Groups: Member

Joined: 8/13/2008
Posts: 14
Hi,

first of all, the FileExplorer control rocks! But i have a slight "problem". How do i get the complete filename of the selected file in the FileExplorer. I noticed there is a Label inside de FileExplorer tag, but i can't seem to call it's value.

UPDATE: i have another small problem.
I have a page with an editor (combined with a spellchecker, colorpicker, contextmenu).
I have added a File Explorer on that page and the FileExplorer Preview Pane doesn't show.

Printscreen to be seen here.
The source code of the page can be downloaded here.

Already thanks for the help.

Anthony.
eo_support
Posted: Thursday, October 2, 2008 10:58:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can use the following JavaScript code to get the current selected file:

Code: JavaScript
eo_GetObject("FileExplorer1").getSelectedFile();


We tried your code and it runs fine at here. So the problem is most likely to be caused by other contents in your page, often your CSS styles. So try the code in a blank page and see if it works. If that works, you can then gradually put other contents back in and it should not be difficult to find out the offending part.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.