Michael B
07-27-2006, 12:38 PM
I have this textbox (yes I said textbox not textarea, xul is what I am useing). And I what to add a small bit of text in the middle of a lot of code. What I am useing is selectionStart to cut the value of the textbox in two the doing
textbox.value = firstBlock + newText + LastBlock
But I am finding were this is a lot of text in the textbox this can be slow. Is there a better way of doing this that dose not reguire the value of all the text to be colected and the printed back out again?
Yours respectfully
A JavaScript Newbe
textbox.value = firstBlock + newText + LastBlock
But I am finding were this is a lot of text in the textbox this can be slow. Is there a better way of doing this that dose not reguire the value of all the text to be colected and the printed back out again?
Yours respectfully
A JavaScript Newbe