在他的官方网站 demo中
http://ckfinder.com/demo第二个 Enhancing HTML Forms 演示中是一个 浏览对话框 点 浏览后 会打开 一个新页面 里边就是 CKFinder 选中图片以后 就会回到原来的页面
并且把你选择的图片 路径 表示出来
这个怎么做的啊

解决方案 »

  1.   

    看它的开发说明:
    http://docs.cksource.com/CKFinder_2.x/Developers_Guide/PHP/Integration
      

  2.   

    没有去了解他怎么实现但是类似功能很简单的代码命名不规范,乱敲的,见谅。chrome测试通过
    window.opener//asa.html<a href="sas.html" target="_blank">123123</a>
    <input id="id" value="">
    sas.html<div onclick="window.opener.document.getElementById('id').value='abcabc';">abcabc</div>
      

  3.   

    <div> 
    <script type="text/javascript" src="../ckfinder/ckfinder.js"></script> 
    <script type="text/javascript"> 
    function BrowseServer(inputId) 

    var finder = new CKFinder() ; 
    finder.basePath = '../ckfinder/'; //导入CKFinder的路径 
    finder.selectActionFunction = SetFileField; //设置文件被选中时的函数 
    finder.selectActionData = inputId; //接收地址的input ID 
    finder.popup() ; 

    //文件选中时执行 
    function SetFileField(fileUrl,data) 

    document.getElementById(data["selectActionData"]).value = fileUrl ; 

    </script> 
    <p> 
    <asp:TextBox ID="txtImgPath" runat="server"></asp:TextBox> 
    <input type="button" value=" 浏 览 " onclick="BrowseServer('<%=txtImgPath.ID %>');" /> 
    </p> 
    </div>