Closed Thread Icon

Topic awaiting preservation: whats wrong with this .... Pages that link to <a href="https://ozoneasylum.com/backlink?for=7860" title="Pages that link to Topic awaiting preservation: whats wrong with this ...." rel="nofollow" >Topic awaiting preservation: whats wrong with this ....\

 
Author Thread
911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-02-2001 11:31

what´s wrong with the following form validation? i always got a white screen withe the text "false" on it, if a inputfield is not filled out.

code:
// Form Validation
function FormCheck()
{
if(document.OnlineBestellung.mengeR1.value != "" && document.OnlineBestellung.CharNR1.value == "")
{
alert("Bitte geben Sie eine Chargen-Nr. für Konjugat IgG ein!");
document.OnlineBestellung.CharNR1.focus();
return false;
}
if(document.OnlineBestellung.mengeR2.value != "" && document.OnlineBestellung.CharNR2.value == "")
{
alert("Bitte geben Sie eine Chargen-Nr. für Konjugat IgM ein!");
document.OnlineBestellung.CharNR2.focus();
return false;
}
if(document.OnlineBestellung.mengeR2.value != "" && document.OnlineBestellung.CharNR2.value == "")
{
alert("Bitte geben Sie eine Chargen-Nr. für Konjugat IgA ein!");
document.OnlineBestellung.CharNR2.focus();
return false;
}
else {
document.OnlineBestellung.submit();
}
}



InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-02-2001 11:53

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-02-2001 12:05

i followed your instructions and i works, but i want that if the first request is false, the script has to stop and the focus has been set to the inputfield. if the first is true and the second request is false, the script ...
and at the moment the scripts gives me three alerts, if no field is filled out, and jumps to the last field. but the focus should be set to the first inputfield which is not filled out.

i hope you could follow my wired mind.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-02-2001 12:31

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-02-2001 12:38

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-02-2001 12:52

i´ll try your code.

and sure, i read and understand you. but i don´t understand this question? ;-)

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-02-2001 12:58

thx a lot! your code works fine!

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-02-2001 12:58

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-02-2001 13:01

yes, i got it!

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 10-02-2001 20:04

A long time ago I wrote a general purpose form validator script. It can check for blank fileds, e-mail addresses, numbers only fileds, select boxes, and textarea fields... Take a look at: http://www.max.co.yu/ozone/form_validation.html

911
Paranoid (IV) Inmate

From: Stuttgart, Germany
Insane since: Apr 2001

posted posted 10-03-2001 12:08

thx max!

also a nice form validation.

« BackwardsOnwards »

Show Forum Drop Down Menu