Hi everybody, I'm using the MCPUK FileBrowser, all is working well (creating floders, uploading, deleting..) BUT I don't know why when you upload a new file, the ressources list becomes empty. I have to refresh the page to show all the items.
How can I do to resolve this issue ?
THX
How can I do to resolve this issue ?
THX
RE: Thumbnails in MCPUK : Refresh Issue
So I finnaly found a solution, Maybe it could be usefull for someone :

function OnUploadCompleted( errorNumber, fileName )
In frmRessourceslist.html
Just replace :
window.parent.frames['frmResourcesList'].Refresh();
by
window.top.location.reload(true);
or :
//window.parent.frames['frmResourcesList'].Refresh();
window.top.location.reload(true);
It's working well
RE: Thumbnails in MCPUK : Refresh Issue
Your solution only works partly, when I am in a subdirectory and upload a file, I get kicked back by the reload to the root directory instead of staying in the subdirectory. This is caused by the fact that a reload is done and not the initial intended Refresh() function from the frmResourcesList frame.
I am not a javascript guy but I read everywhere that firefox doesn't like window.parent.frames and that document.getElementById("iframe") should be used, so I tried something like:
document.getElementById("frmResourcesList").Refresh();
But it says that document.getElementById("frmResourcesList") has no properties.
Does anyone have an other solution for this?
Kind regards Fred Stuurman