Announcement

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

#1 2012-01-11 10:53:18

cheyn.dk
New member
From: Copenhagen, Denmark
Registered: 2012-01-11
Posts: 4

I can't make saveSubmit working.

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

#2 2012-01-11 10:57:47

cheyn.dk
New member
From: Copenhagen, Denmark
Registered: 2012-01-11
Posts: 4

Re: I can't make saveSubmit working.

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

#3 2012-01-11 11:28:55

cheyn.dk
New member
From: Copenhagen, Denmark
Registered: 2012-01-11
Posts: 4

Re: I can't make saveSubmit working.

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

#4 2012-01-11 13:39:09

cheyn.dk
New member
From: Copenhagen, Denmark
Registered: 2012-01-11
Posts: 4

Re: I can't make saveSubmit working.

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

#5 2012-02-28 04:02:03

onedersex40
New member
Registered: 2012-02-28
Posts: 1

Re: I can't make saveSubmit working.

Useful. Request permission to borrow.


[url=http://www.allonlinecasinonews.com]คาสิโนออนไลน์[/url]

Offline

Board footer

Powered by FluxBB