473,471 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

validator client side and navigators ?

is it normal that my required and range validator work on then client side
only with IE 6 (maybe IE5) and not opera 7, netscape 4.7x, netscape 7 ?
in the generated pages, validation.js is inserted in the code only with IE

why? it's only javascript stuff... the other navigator should be abble to
take it in account , shouldn't they?

Christophe
Nov 17 '05 #1
2 1163
Christophe,

Yes, the javascript used in the validators is somtimes not compatible with
other browsers.

The solution is to always validate server side.

If Page.IsValid Then

End If

It's always nice to validate client side when possible, but with so many
browsers to support you can't always trust the client side validation will
work.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Christophe" <ch**************@sans-spam-svp.com> wrote in message
news:3f***********************@news.free.fr...
is it normal that my required and range validator work on then client side
only with IE 6 (maybe IE5) and not opera 7, netscape 4.7x, netscape 7 ?
in the generated pages, validation.js is inserted in the code only with IE

why? it's only javascript stuff... the other navigator should be abble to
take it in account , shouldn't they?

Christophe

Nov 17 '05 #2
oooops...there goes the " server side controls in asp.net return the correct
html based on the browser which made the request" advantage out the window.
Hmmmmm

"S. Justin Gengo" <sj*****@aboutfortunate.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Christophe,

Yes, the javascript used in the validators is somtimes not compatible with
other browsers.

The solution is to always validate server side.

If Page.IsValid Then

End If

It's always nice to validate client side when possible, but with so many
browsers to support you can't always trust the client side validation will
work.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Christophe" <ch**************@sans-spam-svp.com> wrote in message
news:3f***********************@news.free.fr...
is it normal that my required and range validator work on then client side only with IE 6 (maybe IE5) and not opera 7, netscape 4.7x, netscape 7 ?
in the generated pages, validation.js is inserted in the code only with IE
why? it's only javascript stuff... the other navigator should be abble to take it in account , shouldn't they?

Christophe


Nov 17 '05 #3

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

Similar topics

4
by: RA | last post by:
Hi How do I disable it if the user pressed a button: asp:imagebutton id="btnHome" onclick="test()" runat="server" What I want to have is that if someone presses this button then the required...
1
by: Zoe Hart | last post by:
I know that I can use a control's Attributes collection to specify client-side event handlers. I want to add a simple javascript function to pop up a confirmation message for a command button. The...
2
by: Pham Nguyen | last post by:
Has anyone seen an example of a textbox server control that has built-in client-side validation? I'd like to build a server control that extends the System.Web.UI.WebControls.TextBox class to allow...
2
by: Dot net work | last post by:
Hello. Say I have a .net textbox that uses a .net regularexpressionvalidator. If the regular expression fails, is it possible to launch a small client side javascript function to do something,...
2
by: Dot net work | last post by:
Hello. If I use an asp.net custom validator control to validate a textbox, what I find is that if I enter in some text that I have already entered and validated in a previous session (you know...
2
by: Alan Silver | last post by:
Hello, I have a custom validator on my page, and have the server-side code working fine. I want to add a client-side funtion as well, but am not sure how to wire it in so that it works with the...
3
by: CK | last post by:
Hello All, I have a page with a text box. It has a required field validator, and a regualur expression validator tied to it. A valid email is required. When clientside is enabled it works...
12
by: Vadim | last post by:
Hi! I am looking for HTML validator with the following restrictions: 1. Web server is the localhost (page should be validated locally). 2. The page is dynamic (generated by PHP with client side...
3
by: Andy | last post by:
Hi folks, I have a customvalidator control that works properly if it isn't contained in an ASP:TABLE. But, when I place it inside an ASP:TABLE, I find that _ServerValidate doesn't get fired,...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.