Hi,
First working now with it for a day and it looks like a good, fast, not complicated fileManager, just what i need. But i have one problem. When I use the CKFinder in an iframe, like the follwing code.
TEST.ASP
TEST2.ASP
It looks right but now when I select a file, the wrong JS function is called. The JS function of TEST.ASP is called and not of TEST2.ASP.
Is there a solution for this problem?
Any help is a appreciated.
Sybren
First working now with it for a day and it looks like a good, fast, not complicated fileManager, just what i need. But i have one problem. When I use the CKFinder in an iframe, like the follwing code.
TEST.ASP
<body> <h1>test page</h1> <iframe src ="test2.asp" width="700px" height="600px" id="frame1" name="frame1"> </iframe> <script type="text/javascript"> function SetFileField(fileUrl) { alert("Not this function!!!"); } </script> </body>
TEST2.ASP
<body> <% 'Dim oFinder 'Set oFinder = New CKFinder 'oFinder.BasePath = "/admin/include/ckfinder/" 'oFinder.SelectFunction = "SetFileField" 'oFinder.Height = "569px" 'oFinder.Create %> <script type="text/javascript" src="/admin/include/ckfinder/ckfinder.js"></script> <script type="text/javascript"> var finder = new CKFinder() ; finder.BasePath = '/admin/include/ckfinder/' ; finder.SelectFunction = SetFileField ; finder.Height = "569px" finder.Create() ; function SetFileField(fileUrl) { alert("Yeah! The correct function: " + fileUrl); } </script> </body>
It looks right but now when I select a file, the wrong JS function is called. The JS function of TEST.ASP is called and not of TEST2.ASP.
Is there a solution for this problem?
Any help is a appreciated.
Sybren
Re: Iframe problem (CKFinder in iframe not in window)
However it seems there's a workaround - in test2.asp add this line:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+