Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Bug Reports & Fixes:
Bug Report & Fix - Function Result arrange

New User

Feb 18, 2005, 7:09 AM

Views: 23868
Bug Report & Fix - Function Result arrange

Hi!, my name is gonzalo, I'm from BsAs, Argentina.

I'm using your wysiwyg editor, and when i try to use another function on the "OnSubmit" event, it doesn't take action on function result. Supose that we have a test validation before the htmlArea action, then, if I return "false", the htmlArea will not catch my "false" response, and then, the form will be submited.

To solve that you can paste this "if (!a()) return(false);", in line 657, of htmlarea.js.

Here is the context:

f.onsubmit = function() {
editor._textArea.value = editor.getHTML();
var a = this.__msh_prevOnSubmit;
// call previous submit methods if they were there.
if (typeof a != "undefined") {
for (var i in a) {
if (!a()) return(false); //<----- change

thx a lot for htmlArea..it's so useful :)

i'm sory about my stinky english

Gonzalo Larralde.

New User

Feb 18, 2005, 5:16 PM

Views: 23844
Re: [CD77] Bug Report & Fix - Function Result arrange

Thank you for the post.

It worked for me perfect on IE6.0 but i was not able to load htmlarea on netscape after this change.

Any tips?



Feb 18, 2005, 6:29 PM

Views: 23842
Re: [vabrol] Bug Report & Fix - Function Result arrange

The correct fix was posted on SourceForge:
Stanislas Rolland
Saint-Lambert, Qu´┐Żbec