Announcement

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

#1 2005-09-23 05:06:56

testusr
New member
Registered: 2005-09-23
Posts: 2

Other location - problem

Hi,

I have problem with _editor_url:

<html>
<head>
  <script type="text/javascript">
    _editor_url  = "./savi/xinha/";  // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "en";      // And the language we need to use in the editor.
  </script>
  <script type="text/javascript" src="./savi/xinha/htmlarea.js"></script>
  <script type="text/javascript" src="my_cfg.js"></script>
</head>

<form method="POST" action="x.php">
    <textarea id="AreaED" name="AreaED" rows="10" cols="50" style="width: 100%"></textarea>
    <p><input type="submit" value="Save" name="B1"></p>
</form>

When I have Xinha installed in http://localhost/xinha everything is ok (_editor_url =  "/xinha/"), but in other location like _editor_url  = "./savi/xinha/" this doesn't work! Why? Absolute URL is: http://localhost/savi/xinha/, and I execute script in http://localhost/savi/x.html file.

Last edited by testusr (2005-09-23 05:08:09)

Offline

#2 2005-09-23 08:40:32

henke
Xinha Community Member
From: Sweden
Registered: 2005-09-22
Posts: 12

Re: Other location - problem

Why do you have just one dot in "./savi/xinha/"? If you want to go to a parent director you should have two dots. Dunno if this is what you mean... just an idea. smile

Offline

#3 2005-09-23 08:46:32

testusr
New member
Registered: 2005-09-23
Posts: 2

Re: Other location - problem

henke wrote:

Why do you have just one dot in "./savi/xinha/"? If you want to go to a parent director you should have two dots. Dunno if this is what you mean... just an idea. smile

One dot "./" - it's current dir ? OR "savi/xinha/" this doesn't work too.

Offline

#4 2005-09-23 09:22:30

henke
Xinha Community Member
From: Sweden
Registered: 2005-09-22
Posts: 12

Re: Other location - problem

I assume "savi" is your home directory and xinha is located in a folder called "xinha".

Then you can write like this:
_editor_url  = "xinha/"

If you know where your home directory is located on the server (I use /home/savi as an example here) you can write like this:
_editor_url  = "/home/savi/xinha/"

EDIT: typo

Last edited by henke (2005-09-23 09:23:28)

Offline

Board footer

Powered by FluxBB