You are not logged in.
I'm having trouble with Xinha at the moment where something in the code is running away and eating up all the CPU resources, until I get the message 'A script on this page is causing Mozilla to run slowly....' and would I like to stop it running.
I can't think what's doing it, so has anyone else had this problem?
I'm using Xinha on multiple textareas, by adding this code next to each textarea:
<script language="JavaScript1.2">
xinha_editors[xinha_editors.length] = 'f3content';
</script>
For config, I have the following setup file (comments removed to keep it concise):
xinha_editors = new Array();
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
// This contains the names of textareas we will make into Xinha editors
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'CharacterMap',
'FullScreen',
'Linker',
'SpellChecker',
'Stylist',
'SuperClean'
];
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;
var tas = document.getElementsByTagName("textarea");
xinha_config = new HTMLArea.Config();
xinha_config.stylistLoadStylesheet('/siteadmin/wysiwyg.css');
xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);
HTMLArea.startEditors(xinha_editors);
}
window.onload = xinha_init;
Any ideas?
Offline
I did encounter a similar problem when I try to strip down the codes in full_example-body.html.
If I remember correctly, the culprit is this line of code "<script src="full_example.js"></script>" somewhere at the bottom.
Offline
Hmm, there's no reference to full_example.js anywhere in my code.
Offline
Any ideas?
You will see this if you are using the Linker plugin and the number of files being sent back is large. In my case I tried sending back a directory structure of about 1000 files (scan.php) .. and got that warning.
Separately I do notice Mozilla/FireFox slows down after a while of running Xinha. It would be cool if the Mozilla folks added the ability to list out the threads that are currently running so one might be able to see what's going on.
-----------------------------------------------------------------------------------------
Content Management with Business Intelligence [url]http://www.formvista.com[/url]
Offline
Cheers, guess I'll have to play with scan.php earlier than planned then
Offline
Yes Linker is the main culprit for that. It would be good if we could get a "progressive loading tree" happening (ie branches don't load until they are required).
James Sleeman
Offline
should we create a ticket for this?
Niko
Offline
should we create a ticket for this?
It would require writing a new tree (currently it uses "dTree" which I found somewhere). But would be very nice. Yes submit a ticket, but low priority enhancement
James Sleeman
Offline
created one:
http://xinha.python-hosting.com/ticket/240
and modified scan.php to not use DOCUMENT_ROOT (instead __FILE__/../..)
http://xinha.python-hosting.com/changeset/133
Niko
Offline