I've wrote a simple code as follows:
<script type="text/javascript">
var count = 0;
function Button1_Click()
{
var div = document.getElementById("form1");
var input = document.createElement("textarea");
input.id = "id" + count;
count++;
input.maxLength = "100";
input.cols = "10";
input.rows = "10";
div.appendChild(input); //appendChild
rapidSpell.ayt_setupTextBoxes(true);
return false;
}
</script>
I open dynamically a few textareas, when I type, the spellChecker starts working, and if I write in one textArea and change the focus immediately on another, an error occurs which keeps repeating it self in a loop.
it comes to thousands of errors. All of them of the simmilar type:
Uncaught TypeError: undefined is not a function
VM17847:1 Uncaught TypeError: Cannot read property 'length' of undefined
VM17847:1 (anonymous function)
24RapidSpell-AYT.js:1301
Uncaught TypeError: undefined is not a function
RapidSpell-AYT.js:1301
rsw_checkValuesForChange
What is the problem, and can it be fixed?
Thanks