hi i wrote a litte program in javascript to display the next event on a site , this is done by reading a text file on the server , and then fill some arrays and put it on the screen
but it only seems to work in Firefox and not in IE , i think it is because Firefox uses the java from sun and IE uses its own Jscript to run the script , is ther a way around to tell IE to also use the java from sun ?? or can i write this in a way it works in IE ??
i’ll show the part of the code i thing is not working in IE
[CODE]
var datafile = window.location.href.substring(0,
window.location.href.lastIndexOf(“/”) + 1) +
“agenda.txt”;
var url = new java.net.URL(datafile);
var connect = url.openConnection();
var input = new java.io.BufferedReader(
new java.io.InputStreamReader(
connect.getInputStream()));
var aLine = “”;
var datum = new Array();
var info = new Array();
var waar = new Array();
var url = new Array();
aLine = input.readLine();
var i = 0;
do
{
// document.write(i);
datum[i] = aLine;
aLine = input.readLine();
info[i] = aLine;
aLine = input.readLine();
waar[i] = aLine;
aLine = input.readLine();
url[i] = aLine;
i++;
}
while((aLine = input.readLine()) != null)
for a demo of the problem see the box on the right side on top of
[URL]http://users.telenet.be/slenders001/EMTv2/index.html
the error in IE is that java is not defined