473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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)
{
}

}

Nov 19 '05 #1
1 1453
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)
{
}

}
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gary Varga | last post by:
In the file WebUIValidation.js, when a postback that doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit function....
3
by: Rob Meade | last post by:
Hi all, I have a login page which has username and password fields, a login button, and 2 validation controls (one for each field) - currently I have controls to display to the summary if the...
1
by: NancyASAP | last post by:
Thought I'd share this since it took me a long time to get it working. Thanks to a bunch of contributers in Google Groups who shared javascript, etc. The question was: How can I put a reset...
1
by: Buddy Ackerman | last post by:
I don't know what the problem is. I have a form with several controls that need to be validated, I put a validation group in every form control, every validatoino control, the submit button and...
5
by: paul_zaoldyeck | last post by:
does anyone know how to validate an xml file against multiple defined schema? can you show me some examples? i'm making here an xml reader.. thank you
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.