H
harry
Trying to get a function working in IE 5.5 (sp3) & Mozilla1.6
The function is called when a table row is double clicked i.e...
function dblClicked()
{
getElement("viewSearch").click();
}
This works fine under IE but not Mozilla, so I thought lets break the
statement down like so -
function dblClicked()
{
var x = getElement("viewSearch");
x.click():
}
This now doesn't work in either!
getElement() looks like this -
function getElement(id)
{
var e = document.getElementById(id);
if(e)
{
return e;
}
else
{
alert(e + " not found!");
}
}
Any ideas? - surely they are identical?
thanks
harry
The function is called when a table row is double clicked i.e...
function dblClicked()
{
getElement("viewSearch").click();
}
This works fine under IE but not Mozilla, so I thought lets break the
statement down like so -
function dblClicked()
{
var x = getElement("viewSearch");
x.click():
}
This now doesn't work in either!
getElement() looks like this -
function getElement(id)
{
var e = document.getElementById(id);
if(e)
{
return e;
}
else
{
alert(e + " not found!");
}
}
Any ideas? - surely they are identical?
thanks
harry