[TxMt] TextMate.system() (in the HTML output window) max data size?
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Wed Dec 12 11:35:19 UTC 2007
On 12 Dec 2007, at 11:56, Allan Odgaard wrote:
> On 12 Dec 2007, at 11:46, Hans-Joerg Bibiko wrote:
>> function output (str) {
>> document.getElementById("main").innerHTML = "<pre><span
>> style='font-size:9pt'>" + str + "</span></pre>";
>> }
>> [...]
>> Is there something wrong with my code? I cannot see the point.
> The output function is called when there is output, so it will be
> called multiple times (at least FILE_SIZE / PAGE_SIZE (8 KB) times)
> -- since your function overwrites the existing innerHTML, you will
> only see the result of the last call.
Ah, I see.
With an accumulator it works, like
function output (str) {
outvar += str;
document.getElementById("main").innerHTML = outvar;
}
Thanks so much for the prompt help!
--Hans
More information about the textmate
mailing list