cmackowski
IS-IT--Management
Hello All,
First I have no real knowledge of javascripts. Only examples that I have been able to find.
We have an intranet site which is unable to work with Firefox. I am assuming that the problem is MS JVM scripts vs. Sun Javascript. This site needs overhaul for other reasons. Personally Opinion that the offending tags should be changed since Firefox is one of our supported browsers.
First question:
Is there a utility which will look at code for each page and correct problems? Is there something that can translate from JVM to Sun Javascript?
Can anyone give me some ideas what is going on with the following examples: -- I found these in Firefox javascript console. -- Any Help is greatly appreciated!!
**Warning: Non-standard document.all property was used. Use W3C standard document.getElementById() instead.
Source File: Line: 20
function fnSrvJump(){
window.location.href = "namesearch.asp?name="+document.all.srvJump.value;
}
function fnSrvJumpShow(){
window.title2.style.display = "block";
document.all.btnJump.focus;
}
**Error: obj has no properties
Source File: Line: 11
**Error: obj has no properties
Source File: Line: 15
function fnShowRows(obj, pic)
{
var str = pic.src;
var lenVal = str.lastIndexOf("/");
if (str.substr(lenVal) == "/expand.gif"){
obj.style.display = "block";
pic.src = "images/collapse.gif";
}
else{
obj.style.display = "none";
pic.src = "images/expand.gif";
}
}
**Error: window.event has no properties
Source File: Line: 47
function mouseHover(state)
{
var row = window.event.srcElement;
row.style.cursor='hand';
if (state == "over")
{
var colorChange = "#000000";
}
else
{
var colorChange = "#FFFFFF";
}
row.style.color = colorChange;
}
**Error: window.navigate is not a function
Source File: Line: 43
}
function fnSelect(sPage)
{
window.navigate('Reports/'+sPage);
}
First I have no real knowledge of javascripts. Only examples that I have been able to find.
We have an intranet site which is unable to work with Firefox. I am assuming that the problem is MS JVM scripts vs. Sun Javascript. This site needs overhaul for other reasons. Personally Opinion that the offending tags should be changed since Firefox is one of our supported browsers.
First question:
Is there a utility which will look at code for each page and correct problems? Is there something that can translate from JVM to Sun Javascript?
Can anyone give me some ideas what is going on with the following examples: -- I found these in Firefox javascript console. -- Any Help is greatly appreciated!!
**Warning: Non-standard document.all property was used. Use W3C standard document.getElementById() instead.
Source File: Line: 20
function fnSrvJump(){
window.location.href = "namesearch.asp?name="+document.all.srvJump.value;
}
function fnSrvJumpShow(){
window.title2.style.display = "block";
document.all.btnJump.focus;
}
**Error: obj has no properties
Source File: Line: 11
**Error: obj has no properties
Source File: Line: 15
function fnShowRows(obj, pic)
{
var str = pic.src;
var lenVal = str.lastIndexOf("/");
if (str.substr(lenVal) == "/expand.gif"){
obj.style.display = "block";
pic.src = "images/collapse.gif";
}
else{
obj.style.display = "none";
pic.src = "images/expand.gif";
}
}
**Error: window.event has no properties
Source File: Line: 47
function mouseHover(state)
{
var row = window.event.srcElement;
row.style.cursor='hand';
if (state == "over")
{
var colorChange = "#000000";
}
else
{
var colorChange = "#FFFFFF";
}
row.style.color = colorChange;
}
**Error: window.navigate is not a function
Source File: Line: 43
}
function fnSelect(sPage)
{
window.navigate('Reports/'+sPage);
}