Hello,
If it possible to use multiple and different named input box in order to choose different pictures in popup version? Or is it possible to use dynamic SetFileField( fileUrl ) function?
Thanks in advance
If it possible to use multiple and different named input box in order to choose different pictures in popup version? Or is it possible to use dynamic SetFileField( fileUrl ) function?
Thanks in advance

Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
I think i couldn't explain my wish well. Let me say I have 10 different input box in my admin panel. All of them named different like <input name="bla1" id="bla"...,<input name="bla2" id="bla2".... And i want to open popup and select picture from CKFinder for every input box separately. picture1 for bla1, picture2 for bla2.
Is it possible?
Thanks again
Re: Using multiple and different text fields in to popup version
function BrowseServer(field) { CKFinder.Popup( '/ckfinder/1.1/', null, null, function(url) {SetFileField(field, url)} ) ; } function SetFileField( field, fileUrl ) { document.getElementById( field ).value = fileUrl ; }and then add pairs:
<input type="text" size="60" name="FilePath1" id="FilePath1"/> <input type="button" onclick="BrowseServer('FilePath1');" value="Browse Server"/>Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>CKFinder - Sample - Standalone</title> <script type="text/javascript" src="../../ckfinder.js"></script> <script type="text/javascript"> var editedField; function BrowseServer( field ) { editedField = field ; CKFinder.Popup( '../../', null, null, SetFileField ) ; } // This is a sample function which is called when a file is selected in CKFinder. function SetFileField( fileUrl ) { document.getElementById( editedField ).value = fileUrl ; } </script> </head> <body> <table> <tr> <td>Selected File URL</td> <td><input type="text" id="xFilePath1" name="FilePath1" size="60" /></td> <td><input type="button" value="Browse Server" onclick="BrowseServer('xFilePath1');" /></td> </tr> <tr> <td>Selected File URL</td> <td><input type="text" id="xFilePath2" name="FilePath2" size="60" /></td> <td><input type="button" value="Browse Server" onclick="BrowseServer('xFilePath2');" /></td> </tr> </table> </body> </html>Re: Using multiple and different text fields in to popup version
Re: Using multiple and different text fields in to popup version
This method in Javascript works, I however have a different question...
What happens when you want to select multiple files into a textarea?
Lets say I have a text area which I use to build a gallery from, I upload 50 files using CKFinder and then want to select them in a popup window using ckfinder and populate the textarea with the filenames, seperated by a comma...
What do we need to do to implement this?