Welcome Guest Search | Active Topics | Sign In | Register

eo:FileExplorer Options
minh erickson
Posted: Thursday, September 18, 2008 8:26:49 AM
Rank: Member
Groups: Member

Joined: 9/16/2008
Posts: 11
I have a need to view different type of files (doc/txt/pdf) using the fileexplorer, but currently it only supports images type files. Any suggestion how I can do that? How do I control the right split panel with my own page? (server side event/client side click event?)
eo_support
Posted: Thursday, September 18, 2008 8:35:53 AM
Rank: Administration
Groups: Administration

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

I believe it's possible to implement your own preview panel by handling the FileExplorer's ClientSideOnFileSelected event handler:

http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.FileExplorer.ClientSideOnFileSelected.html

You would then call the FileExplorer's getCurrentFile to get the path of the current selected file:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.FileExplorer.getCurrentFile.html

From there on you would then be able to perform whatever task you would like with that path. When you want to implement your own preview mechanism, you will want to modify the FileExplorer's LayoutTemplate to take out the default preview panel first.

You may also find this topic helpful if you are not already familiar with our client side API:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

Thanks
minh erickson
Posted: Thursday, September 18, 2008 11:13:52 AM
Rank: Member
Groups: Member

Joined: 9/16/2008
Posts: 11
I tried but got this message
Microsoft JScript runtime error: Object doesn't support this property or method.
Please advise.

the code

var testfile = eo_GetObject("FileExplorer1");

if (testfile)
window.alert(testfile.getCurrentFile());
eo_support
Posted: Thursday, September 18, 2008 11:41:25 AM
Rank: Administration
Groups: Administration

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

Can you try "getSelectedFile" instead of "getCurrentFile"?

Thanks
minh erickson
Posted: Thursday, September 18, 2008 11:59:40 AM
Rank: Member
Groups: Member

Joined: 9/16/2008
Posts: 11
Wow. That works. 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.