You are not logged in.
just installed xinha in a rails app for a client. Works great on the dev box, thanks alot for this (MoreBS.com). However, when pushed to the server it loads on first use but then no longer functions after first “update”. ie. “edit” or “new” only show as basic rails text_area and xinha does not appear. Killing server process and restart, works once then fails. Anybody else experienced this problem?
I m going to try changing javascript caching, but just thought maybe there d be fast track to solving this.
Thanks, sgk
This happens in both Firefox and Opera browsers on Opensolaris b101a. The xinha version is :
Release: 0.95 RC2 (Mo, 04 Feb 2008 18:28:42 +0100)
Head: http://svn.xinha.webfactional.com/branc … nhaCore.js
Revision: 955M
Last Changed By: (lokal)
Output to browser on first new/edit:
<script type="text/javascript">
1
2//<![CDATA[
3xinha_editors = null; xinha_init = null; xinha_config = null; xinha_plugins = null;
4xinha_init = xinha_init ? xinha_init : function() {
5xinha_editors = xinha_editors ? xinha_editors : [ 'post_body' ];
6xinha_plugins = xinha_plugins ? xinha_plugins : [ 'Equation','FindReplace','GenericPlugin','GetHtml','HorizontalRule','InsertAnchor','InsertSmiley','SaveSubmit' ];
7if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
8xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
9xinha_config.height = '700px';
10xinha_config.width = '700px';
11xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
12Xinha.startEditors(xinha_editors);}
13Xinha._addEvent(window, 'load', xinha_init);
14//]]>
15
</script>
Output to browser on subsequent new/edit:
<script type="text/javascript">
1
2//<![CDATA[
3xinha_editors = null; xinha_init = null; xinha_config = null; xinha_plugins = null;
4xinha_init = xinha_init ? xinha_init : function() {
5xinha_editors = xinha_editors ? xinha_editors : [];
6xinha_plugins = xinha_plugins ? xinha_plugins : [];
7if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
8xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
9xinha_config.height = '700px';
10xinha_config.width = '700px';
11xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
12Xinha.startEditors(xinha_editors);}
13Xinha._addEvent(window, 'load', xinha_init);
14//]]>
15
</script>
Last edited by sgk (2008-11-17 16:57:09)
Offline
In the second example, the xinha_editors (and xinha_plugins) array is empty, so its clear that the textarea is not converted. Why this happens is not possible to say from here, as it seems to be your server app that's acting wrongly
Offline