Some time ago I posted a note that racetv.xml was crashing explorer..
It turned out that there is a limit to the amount of data that can be
written to a file via writefile(). Pending a fix for the writefile()
limit, I decided to work on racetv.xml to work around the problem..
(race season is underway :-) ).. Instead of writing the file out all
at once, I changed the script to call writefile() to create the file,
put in the header info, and then call appenfile() multiple times to
write the data out in chunks... but it still crashes explorer if the
entire amount of data is written out!.. This surprised me since I was
only writing small amounts of data at a time. . I dont like
truncating the data but if I do it, I can create the output file
successfully. Does anyone have any ideas as to how I can work around
this behavior?
This is the routine I have in place. It writes out the data one table
row at a time..
writeFile(racetvoutfile, RacingSearchBodyCode);
for (var i = 0; i < (sBody_array.length-1); i++) {
appendFile(racetvoutfile, sBody_array[i] +"<tr>\r\n")
}
appendFile(racetvoutfile,"</tr></table></body></html>");
Monty
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Archive: https://lists.sourceforge.net/lists/listinfo/dqsd-devel