Menu

#1 Howto use more than one instance per page

open-fixed
nobody
None
5
2004-04-25
2004-04-11
Andreas
No

Hi folks,

I had the following problem:
I tried to use two HyperTextAreas in one page.
The page was written in PHP and was thought to reload
after pressing the submit button.
The first HyperTextArea did not update its contents
and after the reload there was a JavaScript: too much
recursion error using Mozilla, IE just crashed.

The solution:
In the function onHyperTextAreaLoad I commented out
the following lines:
//onSubmitFunc = area.form.onsubmit;
//area.form.onsubmit = function(){
// area.update();
// onSubmitFunc();
//}

Then I added
onSubmit="areaOne.update();areaTwo.update();"
to the form containing the two HyperTextAreas.

Works perfectly for me.
:-)

Discussion

  • Keith Alperin

    Keith Alperin - 2004-04-25

    Logged In: YES
    user_id=64182

    The latest release should solve this problem without having to patch
    hypertextarea.

     
  • Keith Alperin

    Keith Alperin - 2004-04-25
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.