Announcement

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

#1 2006-03-30 12:31:12

sd
New member
Registered: 2006-03-30
Posts: 1

xinha shared, please advice...

Here is what I’m trying to do.
I have a server with virtual hosts. I’m using xinha on some and it’s working just fine.
What I want to do though is, to be able to use xinha with all virtual hosts, still I don’t want to have a copy of all xinha files for each host. If it’s possible I want to have xinha, or at least most of it’s files on a single location on the server, and to use it from all virtual hosts. When I try to do that, the images and the css looks like loading fine, but the textarea stays disabled and java script errors pop-up.
The problems seens to come from this row:

_editor_url  = "http://www.anotherdomain.com/xinha/"

When the current domain is specified, it works, when I change it to another one it breaks.

In IE I’m getting an error:
‘null’ is null or not an object

In Firefox JS console:
Error: [Exception... "'Permission denied to get property CSSStyleDeclaration.cssText' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "<unknown>"  data: no]
Error: uncaught exception: Permission denied to get property CSSStyleDeclaration.cssText

Please advice me is this possible to be done at all, and if it is what might be the problem…

Thank you.

Offline

#2 2006-04-02 12:40:48

tteddo
Xinha Community Member
From: Maine
Registered: 2005-06-28
Posts: 13
Website

Re: xinha shared, please advice...

I do exactly what you need. I am using IIS, but I assume you can make virtual directories in Apache as well.
Under the Control Panel directory (/Private) in each users domain I created a virtual directory called xinha that points to the single directory xinha under InetPub. In IIS under that domain you right-click on Private, and select New then Virtual Directory
Then use the normal configuration like the newbie guide says and put the following in the head of all the pages where you want to use xinha:
    <script type="text/javascript">
    _editor_url  = "xinha/";
    _editor_lang = "en";
    _editor_skin = "blue-look";
    </script>
    <script type="text/javascript" src="xinha/htmlarea.js"></script>
    <script type="text/javascript" src="xinha/my_config.js"></script>

It works because now there is a virtual directory under Private. Also, in the configuration in the head you can customise for each domain, even though you are using all the same files.

You do not have to do any configuring for the path at all in the xinha directory this way either.

Offline

Board footer

Powered by FluxBB