473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Registration Forms and No Javascript

Hi.

Could somebody please tell me how to handle
registration when javascript isn't enabled? I don't
want an ugly <noscriptmessage that says "you
must have javascript enabled" but, rather I want
javascript to fire if javascript is enabled and, if it
is not enabled, i want the server code to fire. In
both cases, form validation is done and the user
won't be able to tell the difference.

What would my form tag and its associated attributes
look like to get this kind of logic to happen?

thanks a bunch

May 18 '07 #1
2 1189
Use the built in validation controls. They handle this for you.

Derek

On May 18, 3:13 pm, pbd22 <dush...@gmail.comwrote:
Hi.

Could somebody please tell me how to handle
registration when javascript isn't enabled? I don't
want an ugly <noscriptmessage that says "you
must have javascript enabled" but, rather I want
javascript to fire if javascript is enabled and, if it
is not enabled, i want the server code to fire. In
both cases, form validation is done and the user
won't be able to tell the difference.

What would my form tag and its associated attributes
look like to get this kind of logic to happen?

thanks a bunch

May 18 '07 #2
the standard validation controls do this, and if you write your own, you
can supply both client and server code. you need to check IsValid in
your postback handling.

you also need to avoid controls that require javascript to postback, for
example the linkbutton.

-- bruce (sqlwork.com)

pbd22 wrote:
Hi.

Could somebody please tell me how to handle
registration when javascript isn't enabled? I don't
want an ugly <noscriptmessage that says "you
must have javascript enabled" but, rather I want
javascript to fire if javascript is enabled and, if it
is not enabled, i want the server code to fire. In
both cases, form validation is done and the user
won't be able to tell the difference.

What would my form tag and its associated attributes
look like to get this kind of logic to happen?

thanks a bunch
May 18 '07 #3

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

Similar topics

4
by: karolina | last post by:
Hi, I am making a small registration form about cars in three steps. The first step is to fill in member data. After filled out the member data hit "next" and enter car information. Hit "next"...
11
by: Paul Aspinall | last post by:
Hi Can anyone offer any hints / tips for creating registration keys / application activation, as software copy protection measures for a Winform app developed in C#? Thanks
3
by: Paul Evans | last post by:
Hi, I've set up forms based authentication. What I'm not sure how to do is redirect visitors (who have not logged on) to the registration page, when they request a web page they are not...
6
by: pbd22 | last post by:
All: Is there any reason that writing an XMLHTTP registration page is a bad idea? I am assuming all registrants have javascript enabled (or advise them to enable it). I guess I just want to know...
2
by: roger26 | last post by:
I am having trouble with a registration page. Which contains 3 groups of radio buttons and a check box i having hard time to making it work. I have added code for matching the password too but having...
1
by: Tarcetial | last post by:
Im trying to make a personal website with a log in/registration system. I found some help with the log in and now i just need some help with the registration. This is the coding im already using: ...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
1
by: junky149 | last post by:
I am having the OLE Registration error. I have read that I have to close Ole. Can any one tell me how to do it? My Code: Private Sub Command1_Click() Dim myChart As Object Set myChart =...
0
by: junky149 | last post by:
I am having the OLE Registration error. I have read that I have to close Ole. Can any one tell me how to do it? I am using Access 2002 My Code: Private Sub Command1_Click() Dim myChart As...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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 ...

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.