Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-01-29 14:14:36

jive
Xinha Community Member
Registered: 2005-12-03
Posts: 14

a simple pop up from xinha.

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

#2 2006-01-29 14:47:29

jive
Xinha Community Member
Registered: 2005-12-03
Posts: 14

Re: a simple pop up from xinha.

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

#3 2006-01-30 05:25:42

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: a simple pop up from xinha.

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

#4 2006-01-30 15:02:36

jive
Xinha Community Member
Registered: 2005-12-03
Posts: 14

Re: a simple pop up from xinha.

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

Board footer

Powered by FluxBB