You are not logged in.
Pages: 1
Hello
I am complitely new to Xinha.
When i try to make SaveSubmit save my text on a MySQL DB it just keep on showing a field saying "Saving... Working".
my script in <head> is this:
<script type="text/javascript">
_editor_url = "http://localhost/nyevaogove/admin/xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "da"; // And the language we need to use in the editor.
_editor_skin = "silva"; // If you want use a skin, add the name (of the folder) here
_editor_icons = "classic"; // If you want to use a different iconset, add the name (of the folder, under the `iconsets` folder) here
</script>
<script type="text/javascript" src="xinha/XinhaCore.js"></script>
<script type="text/javascript" src="config/xinha_config.js"></script>
<script type="text/javascript">
var editor = xinha_editors.thehousetext; // from JS outside
editor._toolbarObjects.savesubmit.cmd(editor); // calling the button's action
</script>
My form look like this:
<form id="thehousetextform" method="post" action="savetext.php">
<tr><td><textarea id="thehousetext" name="thehousetext"><?php echo $texts['thehousetext']['text']; ?></textarea></td></tr>
<tr><td><input type="hidden" id="thehousetextid" name="thehousetextid" value="<?php echo $texts['thehousetext']['id']; ?>"></td></tr>
</form>
my script in <head> is this:
<script type="text/javascript">
_editor_url = "http://localhost/nyevaogove/admin/xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "da"; // And the language we need to use in the editor.
_editor_skin = "silva"; // If you want use a skin, add the name (of the folder) here
_editor_icons = "classic"; // If you want to use a different iconset, add the name (of the folder, under the `iconsets` folder) here
</script>
<script type="text/javascript" src="xinha/XinhaCore.js"></script>
<script type="text/javascript" src="config/xinha_config.js"></script>
<script type="text/javascript">
var editor = xinha_editors.thehousetext; // from JS outside
editor._toolbarObjects.savesubmit.cmd(editor); // calling the button's action
</script>
Just for info.
<?php echo $texts['thehousetext']['text']; ?> and
<?php echo $texts['thehousetext']['id']; ?>
is working ok.
I also get the errormessage:
xinha_editors is null: editor = xinha_editors.thehousetext; and
form is null: form.onsubmit();
in Firebug
Do any know a solution or a good lerning examble?
Regards Christian Heyn
Offline
P.s.
I also have following 2 metas:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Offline
Realized that
<script type="text/javascript">
var editor = xinha_editors.thehousetext; // from JS outside
editor._toolbarObjects.savesubmit.cmd(editor); // calling the button's action
</script>
is not needed. (Got it from another helptopic)
But when i remove it it still don't work exempt i don't get the error xinha_editors is null: editor = xinha_editors.thehousetext; in firebug.
Offline
I just realized that my form work perfekt in IE but not in Firefox.
Du anybody know why my SaveSubmit form dont work in Firefox?
Offline
Useful. Request permission to borrow.
[url=http://www.allonlinecasinonews.com]คาสิโนออนไลน์[/url]
Offline
Pages: 1