Ticket #1551 (closed defect: no action needed)

Opened 3 years ago

Last modified 3 years ago

JavaScript Timeout while saving...

Reported by: guest Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version: trunk
Severity: major Keywords: java script javascript timeout times out
Cc:

Description

Xinha V0.96.1

Plugins enabled:

"CharacterMap", "ContextMenu", "DynamicCSS", "EditTag", "Equation", "FindReplace", "GetHtml", "HorizontalRule?", "InsertAnchor", "InsertWords", "ListType", "PasteText?", "SpellChecker", "SuperClean", "TableOperations", "UnFormat?"

I've tried with my plugin list (above) and using the example XinhaConfig?.js as it ships and had the same result.

PROBLEM: When I click my form submit button it takes a really (REALLY) long time and Firefox gives me a warning about the script taking too long and asks if I wish to cancel. If I click continue, it takes another couple seconds and then finishes.

I just tried it with FireBug? on, but it seems to be getting stuck in different places (probably not actually getting stuck, but just taking a long time to go through the whole saving process).

One time I noticed it in XinhaCore?.js at line #5855, another time I noticed it in modules/GetHtml/Transform... at line #104 and another time at line #212.

Even if I don't type any HTML into the editor, it takes quite a while to submit, however not as long and I don't get a timeout.

If I have a fairly complex piece of HTML (with tables, images, etc) it always times out.

I've tried various HTML that I have laying around (all in the 10-15K range) and it times out on all of them.

In IE I get "Stack Overflow Line #257"

In Chrome, it seems to work better, but I think that's because Chrome has a much faster implementation of javascript...

Change History

Changed 3 years ago by guest

I'm trying to debug this with FireBug?, and I just got a different error:

"Too much recursion" in XinhaCore?.js Line #6437...

Changed 3 years ago by guest

Apparently this was a bug in my javascript that was called during the saving of a document. For some reason it worked fine on an older version of Xinha. I changed my javascript 'save' to be an onClick event on the submit button instead of an 'onSubmit' event on the form and everything seems to work fine now.

Changed 3 years ago by wymsy

  • status changed from new to closed
  • resolution set to no action needed
Note: See TracTickets for help on using tickets.