Hi,
I would like to know if this scenario is possible using Javascript.
Form has input field such as Age, weight etc. If a user does not
put in data in the field, I would like to open another window and
ask user why they left it blank. I then want to save that "why data"
in an access database table. I don't want to force them to put in
age, but I need to know why they skipped the field.
Also, I would like to do this through a PDF form vs. HTML.
Any help and/or references is much appreciated. Code sample even better!
Thanks,
Dave 3 1214
On Wed, 21 Jan 2004 14:59:55 GMT, Dave <dh********@NOSPAMbioreg.com> wrote: Form has input field such as Age, weight etc. If a user does not put in data in the field, I would like to open another window and ask user why they left it blank. I then want to save that "why data" in an access database table. I don't want to force them to put in age, but I need to know why they skipped the field.
It is possible, but there is no reason to do it. If you are going to save
the data to a database, which must be done from the server, then you may
as well direct the user to a page where they can enter your "why data"
before progressing further.
Alternatively, just place next to the age input, a text box or a menu that
they can use to give their reasons.
Both of these suggestions avoid the issue of a browser with JavaScript
disabled. However, your approach introduces another problem: a pop-up
window. My browser will block it, so there's no way for you to get the
information from me, and I won't be the only one.
Mike
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Thanks for the reply. Okay, I agree with your popup assessment. I don't
really want to clutter the main form, so another page seems good. Can I
maintain control from the main page so that it takes them back to the
same point where they were previously?
Do you know any site with code that might be able to help with this task?
Especially, the database connection and control of the child page.
Also, how about this running in a PDF file?
Thanks,
Dave
Michael Winter <M.******@blueyonder.co.invalid> wrote in
news:op**************@news-text.blueyonder.co.uk: On Wed, 21 Jan 2004 14:59:55 GMT, Dave <dh********@NOSPAMbioreg.com> wrote:
Form has input field such as Age, weight etc. If a user does not put in data in the field, I would like to open another window and ask user why they left it blank. I then want to save that "why data" in an access database table. I don't want to force them to put in age, but I need to know why they skipped the field.
It is possible, but there is no reason to do it. If you are going to save the data to a database, which must be done from the server, then you may as well direct the user to a page where they can enter your "why data" before progressing further.
Alternatively, just place next to the age input, a text box or a menu that they can use to give their reasons.
Both of these suggestions avoid the issue of a browser with JavaScript disabled. However, your approach introduces another problem: a pop-up window. My browser will block it, so there's no way for you to get the information from me, and I won't be the only one.
Mike
On Wed, 21 Jan 2004 15:41:54 GMT, Dave <dh********@NOSPAMbioreg.com> wrote: Thanks for the reply. Okay, I agree with your popup assessment. I don't really want to clutter the main form, so another page seems good. Can I maintain control from the main page so that it takes them back to the same point where they were previously?
Yes, it too can be done. It will most likely implemented using a session
cookie, but it could depend on what you have on your page.
Do you know any site with code that might be able to help with this task?
The best place to ask would depend on what language you will use
server-side.
ASP:
General questions: microsoft.public.inetserver.asp.general
Database-related: microsoft.public.inetserver.asp.db
CGI:
comp.lang.perl
comp.infosystems.www.authoring.cgi
JSP: http://java.sun.com/products/jsp/
PHP:
comp.lang.php
Also, how about this running in a PDF file?
I don't know anything about PDF scripting. Sorry.
Mike
--
Michael Winter M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stefan Richter |
last post by:
Hi, after coding for days on stupid form validations -
Like:
strings (min / max length), numbers(min / max value), money(min / max
value), postcodes(min / max value), telefon numbers,
email...
|
by: Jim |
last post by:
Hi,
I keep getting form results emailed to me that would indicate a form
from my web site is getting submitted with all fields blank or empty,
but my code should preventing users from proceeding...
|
by: Danny |
last post by:
Does anybody have a nice method of forcing a user to enter a value into a
form using asp?
I think the best is to have a popup when they hit submit that will stay on
the same page and then just...
|
by: Charles Banas |
last post by:
weird subject - i hope more than just one curious regular will hear me out.
:)
ok, i've got a bit of a big problem, and i need answers as soon as
possible.
i know this forum is meant for web...
|
by: Hosh |
last post by:
I have a form on a webpage and want to use JavaScript validation for the
form fields.
I have searched the web for form validation scripts and have come up with
scripts that only validate...
|
by: julie.siebel |
last post by:
Hello all!
As embarrassing as it is to admit this, I've been designing db driven
websites using javascript and vbscript for about 6-7 years now, and I
am *horrible* at form validation.
To be...
|
by: h7qvnk7q001 |
last post by:
I'm trying to implement a simple server-side form validation (No
Javascript). If the user submits a form with errors, I want to
redisplay the same form with the errors highlighted. Once the form...
|
by: Chris |
last post by:
Hi,
I have a form for uploading documents and inserting the data into a mysql
db. I would like to validate the form. I have tried a couple of Javascript
form validation functions, but it...
|
by: Rik |
last post by:
Hello guys,
now that I'm that I'm working on my first major 'open' forms (with
uncontrolled users I mean, not a secure backend-interface), I'd like to add
a lot of possibilities to check wether...
|
by: gweasel |
last post by:
What is the best way to apply a Validation Rule - or rather, where is
the best place to put it? Is there an advantage to putting it on the
field in the table vs setting the validation rule on the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
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,...
|
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...
|
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: 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...
| |