Call Refresh of the filemanager

197 views
Skip to first unread message

andrew

unread,
Nov 17, 2011, 3:58:48 PM11/17/11
to izwebfilemanager
Great software first of all.

I have created my own upload panel that works to put files on the
server, now, I just need to figure out how to call a refresh on the
filemanager. I have tried removing the root directory and replacing
it and that doesnt seem to work. Let me know.

Andrew

Igor Zelmanovich

unread,
Nov 18, 2011, 1:58:54 AM11/18/11
to izwebfil...@googlegroups.com
Are you uploading files using AJAX or it is regular PostBack?


Igor Zelmanovich

Andrew Barnes

unread,
Nov 18, 2011, 1:11:26 PM11/18/11
to izwebfil...@googlegroups.com

I am uploading them using ajax, but, the only way I have found to programmatically refresh the filemanager is to call a postback on the page.  There has to be a better way.

 

Let me know,

Andrew

Igor Zelmanovich

unread,
Nov 18, 2011, 1:25:58 PM11/18/11
to izwebfil...@googlegroups.com

Hi,

There is a code, that generates "Refresh" javascript expression:

String.Format("WFM_{0}_Controller.OnRefresh(WFM_{0}_FileView, '');", FileManager1.ClientID)

It is a workaround, current version of IZWebFileManger does not provide client side API

Igor Zelmanovich

Andrew Barnes

unread,
Nov 20, 2011, 7:04:45 PM11/20/11
to izwebfil...@googlegroups.com

Is it possible to call a refresh from the server side of things instead of client?

 

Thanks,

Igor Zelmanovich

unread,
Nov 21, 2011, 12:25:59 AM11/21/11
to izwebfil...@googlegroups.com
In case you are within AJAX request, you have some way to force browser to run "refresh" after AJAX complete.
Any changes of state on server side will not affect client.

What library are you using for implementing AJAX file upload? Could you send me a sample page with your upload bar?

Igor Zelmanovich

Andrew Barnes

unread,
Nov 21, 2011, 8:22:18 AM11/21/11
to izwebfil...@googlegroups.com

Igor,

 

We use the ajax uploader to send our files - http://ajaxuploader.com/  I have the function that runs when the upload is complete, but, it is on the server side.  The closest I have come up with is a complete refresh of the page, which is less than ideal.

Igor Zelmanovich

unread,
Nov 21, 2011, 8:43:02 AM11/21/11
to izwebfil...@googlegroups.com
I guess they have client side callback API, to notify when upload is compete.

I will take a look, but it might take a couple days.

Igor Zelmanovich

Igor Zelmanovich

unread,
Nov 24, 2011, 1:22:30 PM11/24/11
to izwebfil...@googlegroups.com
Hi,

AjaxUploader client side API is pretty poor, but I found a workaround.

You should have ScriptManager on the page.

You may handle FileUploaded event, which is called within AsyncPostBack, and send 'refresh' script to the client by calling ScriptManager api:

ScriptManager.RegisterStartupScript(thisthis.GetType(), "IZWebFileManagerRefresh", String.Format("WFM_{0}_Controller.OnRefresh(WFM_{0}_FileView, '');", FileManager1.ClientID), true);


Igor Zelmanovich

nader javid

unread,
Jul 7, 2015, 1:53:14 PM7/7/15
to izwebfil...@googlegroups.com
hi everyone
i solve this problem

var url = $('#FileManager1_FileView_Address').val();
WFM_FileManager1_FileView.Navigate(url);

Reply all
Reply to author
Forward
0 new messages