Evening,
I'm currently developing a .net project in which i want to open ckfinder through javascript code.
Here's my javascript functions:
<script type="text/javascript">
function BrowseServer() {
var finder = new CKFinder();
finder.BasePath = '/ckfinder/';
finder.SelectFunction = SetFileField;
document.getElementById('ckfinder_inner').style.display = '';
document.getElementById('ckfinder_inner').innerHTML = finder.CreateHtml();
}
function SetFileField(fileUrl) {
document.getElementById('thumb_path').value = fileUrl;
document.getElementById('ckfinder_inner').style.display = 'none';
}
In HTML i have the following:
<input id="thumb_path" type="text" />
<input id="Button1" type="button" value="button" onclick="BrowseServer();" />
Whenever i click the button.. Nothing happens. Any help with this? Thank you very much.