Greeting.
I have a small page to display formatted information from a text file (that is updated from a Java application). The page is:
The script, dcsched.js, is meant to get the text from the iframe as a string, parse it, and display it readably:
Now, this all worked 3 weeks ago (the last time I checked). In between, Firefox asked me to update and I agreed (silly me). Now it won't get past the line:
Is this just a new FF feature or is there something I can do to read the iframe text in FF?
_________________
Bob Rashkin
I have a small page to display formatted information from a text file (that is updated from a Java application). The page is:
Code:
<html><head>
<script src="dcsched.js"></script>
</head><body>
Dog and Cat schedule
<iframe id="if1" src="file://h:/java/d&c.txt" align="right"></iframe>
<div id="d1"></div>
</body></html>
The script, dcsched.js, is meant to get the text from the iframe as a string, parse it, and display it readably:
Code:
function parseCSV() {
var str1=document.getElementById('if1').contentWindow.document.body.innerHTML
var arr3 = new Array()
arr1=str1.split("\n")
arr3[0] = "Name" +"\t\t"+ "Rabies" +"\t\t"+ "Dstmpr" +"\t\t"+ "notes"
for (var i=2; i<arr1.length-3; i++) {
arr2=arr1[i].split(",")
strA = arr2[0].substr(0,7) +"\t\t"+ arr2[4] +"\t"+ arr2[5] +"\t" + arr2[9]
arr3[i]=strA
}
str1 = arr3.join("\n")
document.getElementById("d1").innerHTML="<pre>" + str1 + "</pre>"
document.getElementById('if1').style.display='none';
}
window.onload=parseCSV;
Now, this all worked 3 weeks ago (the last time I checked). In between, Firefox asked me to update and I agreed (silly me). Now it won't get past the line:
Code:
var str1=document.getElementById('if1').contentWindow.document.body.innerHTML
Is this just a new FF feature or is there something I can do to read the iframe text in FF?
_________________
Bob Rashkin