Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Getting the validation summary message to display: help... (http://www.velocityreviews.com/forums/t108627-getting-the-validation-summary-message-to-display-help.html)

JJ_377@hotmail.com 08-24-2005 03:20 PM

Getting the validation summary message to display: help...
 
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)
{
}



}


Grant Merwitz 08-24-2005 03:49 PM

Re: Getting the validation summary message to display: help...
 
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_377@hotmail.com> wrote in message
news:1124896823.093024.154380@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)
{
}



}




All times are GMT. The time now is 01:39 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.