Here's what i'm trying to do and i'm not sure if it could work... I've got a text field with a "browse" button next to it. This button should open the FileBrowser and allow me to select one file on the server. Once selected, the adress of the file is added to the text field. Anyone tried to do this ?? Any other way ?
Thu, 06/01/2006 - 13:08
#1
RE: Use the filebrowser only ?
Filebrowser uses a function called "SetUrl" to return the selected filename to a form, you must make a function called "SetUrl" that have "url" as a parameter, like this (in your html-document):
<script>
function SetUrl(url)
{
document.frm.txtFile.value=url;
}
</script>
Then start the filebrowser like this in your form:
<form name="frm">
<input type="text" name="txtFile">
<input onClick="Javascript:window.open('../fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/asp/connector.asp','Filebrowser','width=800,height=600');" type="button" name="Browse">
</form>
Hope it helps!