mark wills
10-30-2002, 04:42 PM
Hi there, I have some code that looks like this:
<script language="JavaScript" id="Imsg"></script>
<script language="JavaScript">
CheckMsg();
function CheckMsg()
{ Imsg.src='check_msg.asp';
setTimeout("CheckMsg()",20000);
}
</script>
This defines an empty Javascript tag, called Imsg.
The CheckMsg() function calls an active server pages page, which will either write some javascript back between the empty tags (defined by Imsg) or not, depending on if there is a message waiting for the user or not. This is then called every 20 seconds.
It works perfectly in IE 5 & 6, but I have tried the site in Netscape 7.0 and it doesn't work. Nothing happens.
I am wondering how I can make it Netscape compatible. Any ideas?
Nothing fancy happens in check_msg.asp - it just does a response.write("alert('check your messages');") if a message is waiting - thus this gets written in between the empty java script tags and executed. As I say, perfect in IE, but dead in NS. I'd appreciate some comments. I'm new to Netscape (although the GUI looks much better than IE!) It's as if Netscape can't resolve 'Imsg.src'
Mark.
<script language="JavaScript" id="Imsg"></script>
<script language="JavaScript">
CheckMsg();
function CheckMsg()
{ Imsg.src='check_msg.asp';
setTimeout("CheckMsg()",20000);
}
</script>
This defines an empty Javascript tag, called Imsg.
The CheckMsg() function calls an active server pages page, which will either write some javascript back between the empty tags (defined by Imsg) or not, depending on if there is a message waiting for the user or not. This is then called every 20 seconds.
It works perfectly in IE 5 & 6, but I have tried the site in Netscape 7.0 and it doesn't work. Nothing happens.
I am wondering how I can make it Netscape compatible. Any ideas?
Nothing fancy happens in check_msg.asp - it just does a response.write("alert('check your messages');") if a message is waiting - thus this gets written in between the empty java script tags and executed. As I say, perfect in IE, but dead in NS. I'd appreciate some comments. I'm new to Netscape (although the GUI looks much better than IE!) It's as if Netscape can't resolve 'Imsg.src'
Mark.