hi
i am working on a plugin which would open a page containing a dropdownlist box, when the user selects a value from the list a file is opened and file contents are sent to a hidden textarea on the page. i also hve a button which when clicked, i want the child window to be closed and textarea contents to be transfered to the editor control on the parent page.
i have opened the window using window.open in the plugin file
following is the code in the javascript funtion
var a = document.getElementById('<%=TextBox1.ClientID%>')
var rfile = a.innerText
var oEditor = window.opener.InnerDialogLoaded()
oEditor.FCK.InsertHtml( rfile || "" ) ;
window.close();
when i click the button i get the value in rfile but i cant get the rfile value to be set in the fckeditor on the parent page.
i would be greatful if somebody could help me out here.
thanks
san
i am working on a plugin which would open a page containing a dropdownlist box, when the user selects a value from the list a file is opened and file contents are sent to a hidden textarea on the page. i also hve a button which when clicked, i want the child window to be closed and textarea contents to be transfered to the editor control on the parent page.
i have opened the window using window.open in the plugin file
following is the code in the javascript funtion
var a = document.getElementById('<%=TextBox1.ClientID%>')
var rfile = a.innerText
var oEditor = window.opener.InnerDialogLoaded()
oEditor.FCK.InsertHtml( rfile || "" ) ;
window.close();
when i click the button i get the value in rfile but i cant get the rfile value to be set in the fckeditor on the parent page.
i would be greatful if somebody could help me out here.
thanks
san