You are not logged in.
Pages: 1
Hello folks,
I am trying to create a simple pop-up to a html page from a custom button that I put in xinha using the following code:
xinha_config.URIs["upload"] = 'http://www.dancers-corner.com/cms/xinha/plugins/UpLoad/popups/upload.html';
cfg.btnList["upload"] =
[ "File Uploads", "http://www.dancers-corner.com/cms/xinha/images/ed_upload.gif", true, function(e) { xinha_editors.myTextArea._popupDialog(xinha_config.URIs["upload"], null, null); } ];
cfg.toolbar.push(["separator"],["upload"],["separator"]);
The button loads and xinha load fine, however when I push the button I get the following error:
'xinha_editors.myTextArea' is null or not an object.
Any idea. I feel like I'm very close to reaching what I need to do...
Offline
ok, I got the popup to come up, however the I'm tetting a page not found error in the popup. the address I specify here:
xinha_config.URIs["upload"] = 'http://www.dancers-corner.com/cms/xinha … pload.html';
is correct, but the page is not being found.... please help.
Offline
Ehm... this works for me :
xinha_config.URIs["upload"] = '/xinha/plugins/Linker/upload.php';
and then
cfg.btnList["upload"] = [ "upload", "/xinha/images/save.gif", true, function(e) { xinha_editors.myTextArea._popupDialog(xinha_config.URIs["upload"], null, null); } ];
cfg.toolbar.push(["upload"]);
Last edited by Ecco (2006-01-30 05:25:59)
Offline
ahh yes. I did figure it out. I didn't realize that I had to replace this: .myTextArea with the actual name of my text area. Works great now, however I see your point that it does not get the linker box to refresh, and that you have to refresh xinha after upload...
Offline
Pages: 1