Hi.

I have this code in javascript
Code:
                
var teste = document.getElementById("ContentPlaceHolder1_lblEtiq").innerHTML;
                var fso = new ActiveXObject("Scripting.FileSystemObject");

                var a = fso.CreateTextFile("c:\\Etiquetas\\Lote\\Output.txt", true);
                var i = 0;
                for (i = 0; i < teste.length; i++) {
                    if (teste[i] == "")
                        a.write(" ")  <----- problem is here for IE8
                    else {

                        if (teste[i] == "") {
                            a.Writeline("");
                        }
                        else
                            a.Write(teste[i]);
                    }
                }
                a.Close();
                MyObject = new ActiveXObject("WScript.Shell")
                MyObject.Run("C:\\LoteF\\printetiqF.bat", 0, true);
but in IE8 (old pc in our factory) only write one space no 3 or 4 or 5...

any idea?