0

I had written javascript calculation for hotel accommodation system.
The calculation part is working in Mozila fire fox, but it is not working in IE6.
I checked the internet options in IE6 and enabled active scripting, still it is not working.Is there any other option. Please give me the solution its very urgent.

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by almostbob
0

It probably is enabled, but you may have an error in your JavaScript that IE is picking up. The other browsers will sometimes be more lax in their error checking.

0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Browser Details...</title> 
<script language="javascript" type="text/javascript"> 
function details() { 
window.onerror=null; 
if (navigator.javaEnabled() < 1) document.frmDetails.java.value="No"; 
if (navigator.javaEnabled() == 1) document.frmDetails.java.value="Yes"; 

} 

</script> 
</head> 

<body onload="details();"> 


<form name=frmDetails> 
<table border=1 width=499> 

<tr> 
<td> 
java enabled:</td> 
<td align=center><input type=text size=3 maxlength=3 name=java></td> 
</tr> 

<tr> 
<td colspan=2 align=center> 
<input type=button name=again value="Refresh?" onclick="details();"></td> 
</tr> 
</table> 
</form> 

</body> 
</html>

Execute the above code to know whether Java is enabled in your browser or not.

0

validate the code, html is fubar
a standards compliant browser would not render that,
xhtml requires all values quoted in html attributes, attribute='value'

methods for navigator.javaenabled true/false,
try something like

if (navigator.javaEnabled()) document.frmDetails.java.value="Yes";
else document.frmDetails.java.value="No";

Edited by almostbob: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.