How to use UI image upload

366702, modified 18 Years ago. New Member Posts: 6 Join Date: 1/3/08 Recent Posts
How to use "User Interface" image upload with WAR-portlet?

I have Liferay 4.3.3 & Tomcat 5.5.23

Thanks
366702, modified 18 Years ago. New Member Posts: 6 Join Date: 1/3/08 Recent Posts
Please, answer me!
366702, modified 18 Years ago. New Member Posts: 6 Join Date: 1/3/08 Recent Posts
All Right. I find solution!

Here, that I am necessary it was.
366702, modified 18 Years ago. New Member Posts: 6 Join Date: 1/3/08 Recent Posts
The SetUrl(imgUrl) function that will receive the link on the picture should be created in the file that will send for pop-up menu.
For example:
<SCRIPT type="text/javascript">
function SetUrl(imgUrl){
document.getElementById('123').value=imgUrl;
}
</SCRIPT>

To send for the pop-up menu the following script should be written:
window.open('/html/js/editor/fckeditor/editor/filemanager/browser/liferay/browser.html?Type=Image&Connector=%2Fc%2Fportal%2Ffckeditor%3Fp_l_id%3D368%26doAsUserId%3D6DYteNfb914%253D','','width=640,height=480');

or the following one:
<A HREF="javascript:window.open('/html/js/editor/fckeditor/editor/filemanager/browser/liferay/browser.html?Type=Image&Connector=%2Fc%2Fportal%2Ffckeditor%3Fp_l_id%3D368%26doAsUserId%3D6DYteNfb914%253D','','width=640,height=480');" > click</A>

If your have same question about it. Email me: viachaslav.zhilinski@corratech.com