Hi,
i got problem with implementing own upload image script. The idea is to use custom php script for upload and return only filename.
I've done following (as i have found some documentation about at )
1) I have changed fckconfig.js line
FCKConfig.ImageBrowserURL = 'fckeditor/test.html';
2) test.html is usual html file with JavaScript like
window.opener.setImage('http://www.testdomain.com/picture.jpg') ;
window.close() ;
But when JavaScript is started it gives error:
window.opener has no properties.
What seems to be the problem?
What is done wrong?
Thanx in advance
Thu, 07/19/2007 - 12:19
#1
Re: Custom image upload script
I've found solution ) i debugged demo JavaScript and found that for successful return i should use this html code:
<script type="text/javascript">window.parent.OnUploadCompleted(0,"http://www.testdomain.com/picture.jpg'","picture.jpg'", "") ;</script>