Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Getting the validation summary message to display: help...

Reply
Thread Tools

Getting the validation summary message to display: help...

 
 
JJ_377@hotmail.com
Guest
Posts: n/a
 
      08-24-2005
This works in Internet Explorer, but not in Netscape (.
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)
{
}



}

 
Reply With Quote
 
 
 
 
Grant Merwitz
Guest
Posts: n/a
 
      08-24-2005
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


<> wrote in message
news: oups.com...
This works in Internet Explorer, but not in Netscape (.
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)
{
}



}


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Summary not showing for client side validation cwhankey@gmail.com ASP .Net 1 12-12-2008 02:32 AM
Validation Summary Message Box Not Displaying =?Utf-8?B?TWlrZSBNb29yZQ==?= ASP .Net 4 12-09-2004 05:09 AM
Using Summary Validation control with server Custom validation =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= ASP .Net 2 10-15-2004 06:15 PM
Displaying a Validation Error in a Validation Summary Control Lucas Tam ASP .Net 2 02-26-2004 07:49 PM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57