You are not logged in.
Pages: 1
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
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.
Offline
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.
One dot "./" - it's current dir ? OR "savi/xinha/" this doesn't work too.
Offline
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
Pages: 1