Howto use more than one instance per page
Brought to you by:
kalperin
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.
:-)
Logged In: YES
user_id=64182
The latest release should solve this problem without having to patch
hypertextarea.