i have a feeling the line you need to review is
document.getElementById("vs_Summary").innerText;
JavaScript differs slightly over all browser, and you might need to do a
check to see which type of client browser it is and modify your code
slightly.
I know a method to see if its a mozilla based brower versus IE
if(document.all)
{
//IE BROWSER
}
else
{
//MOZILLA BROWSER
}
So, google and find out the Netscape equivalent of:
document.getElementById("vs_Summary").innerText;
and the method to check for Netscape as well.
It will be worth it to make a page with just that line, and test it to see
if it works in netscape, and try modify it to get it too work.
I would try, but don't have netscape (and AM NOT INSTALLING IT :-) )
HTH and Good Luck
<JJ****@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
This works in Internet Explorer, but not in Netscape (8).
Note this script was borrowed from another posting.
Can anyone help? Thank you.
function ErrorMessage()
{
try
{
var validationSummaryMessage =
document.getElementById("vs_Summary").innerText;
if( validationSummaryMessage != null &&
validationSummaryMessage !=
"")
{
alert(validationSummaryMessage*);
}
}
catch(exception)
{
}
}