In this code, if function setupSearchBar() is not defined, then do not call this function:
Code: Select all
function setupSearchOnLoad()
{
try
{
if (setupSearchBar != undefined)
{
setupSearchBar();
}
}
catch (ex)
{
alert("setupSearchOnLoad: Exception: "+ex.name+": "+ex.message);
}
}Exception.error: ReferenceError
Exception.message: "setupSearchBar is not defined"
Why would this occur?
Jeff in Seattle