日期:2014-05-17  浏览次数:20530 次

ckfinder的用法,帮忙看看
我在ckfinder的public override void SetConfig(){
...
// The base URL used to reach files in CKFinder through the browser.
//BaseUrl = Request.QueryString["url"];
  BaseUrl = VirtualPathUtility.ToAbsolute("~/DataFiles/") + Request.QueryString["url"] + "/";

// The phisical directory in the server where the file will end up. If
// blank, CKFinder attempts to resolve BaseUrl.
//BaseDir = Request.QueryString["dir"];
  BaseDir = Ruandao.HostServer.SiteWare.GetCurrent().GetPhysicalPath("~/DataFiles/") + Request.QueryString["dir"] + "\\";

...

}

配置了BaseUrl ,和BaseDir ,
然后在,应用的cshtml的网页里面有这个

  <script type="text/javascript">
  var finder = new CKFinder();
  finder.connectorPath = '@(VirtualPathUtility.ToAbsolute("~/CKFinderConnector/") + "connector.aspx")';

  finder.selectActionData = "container";
  finder.selectActionFunction = function( fileUrl, data ) {
alert( 'Selected file: ' + fileUrl );
// Using CKFinderAPI to show simple dialog.
this.openMsgDialog( '', 'Additional data: ' + data['selectActionData'] );
document.getElementById( data['selectActionData'] ).innerHTML = fileUrl;
  }

finder.connectorInfo = 'url=UpLoad&dir=UpLoad';
   
finder.create();
  </script>

其中 这个是什么意思“、
  finder.connectorInfo = 'url=UpLoad&dir=UpLoad';
这句话,而且这样写打不开finder的页面,是不是 finder.connectorInfo = 'url=UpLoad&dir=UpLoad';
里面下错了

------解决方案--------------------
finder.selectActionFunction = function( fileUrl, data ) {
alert( 'Selected file: ' + fileUrl );
// Using CKFinderAPI to show simple dialog.
this.openMsgDialog( '', 'Addi