I can't rely on the JavaScript. I do have it on for all the form fields as
first resort, but with JavaScript off......

The end users of these forms are on corporate networks, behind firewalls
tougher than Fort Knox, and the IT dept. disables practically EVERYTHING on
their workstations, so the client says, "Make sure you use server-side
validation!", so server-side it is.

Thanks anyway......

<sigh> .... guess I can't do the fancy anchor thingie......

Erika
(with a *K*)

"Whatever you can do, or dream you can, begin it. Boldness has genius,
power, and magic in it." - Goethe

-----Original Message-----
From: Frank Priest [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 12:52 AM
To: CF-Community
Subject: RE: Anchors


Can you do java Script?

If yes, You might try something like this....

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
function formcheck() {
        if (document.form1.YourFieldName.value == "") {
                alert("Please fill in .....");
                form1.YourFieldName.focus();
                return false;
                }
                if (document.form1.YourFieldName.value == "") {
                alert("Please fill in .....");
                form1.YourFieldName.focus();
                return false;
                }
                return true;
        }

//-->
</SCRIPT>




 <FORM ACTION="/....." NAME="form1" onSubmit="return formcheck(this)">


 </FORM>






-----Original Message-----
From: Erika L. Walker [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 13, 2001 7:45 PM
To: CF-Community
Subject: Anchors


No. Not boat anchors. Though I'd seriously like to tie one around this
computers box and through it in a lake.....

However, I have a very long form that someone has to fill out and submit.

I do some server-side validation (my own if statements) and if something
isn't filled out, I semd the user back to the form.

This is what I would like to do:
1) change the background color of that particular question to a different
color. Easy. Piece of cake. Works.
2) since it is such a long form, I'd also like to scroll the page to that
particular question....via anchors. Ha! Nightmare!

Is it possible? Do I have to use cflocation? Can I do it another way?
cflocation is a nightmare, because then I lose what's filled in, and I don't
want to mess with passing all those form variables, but, if you tell me it's
the only way...well.....

Thanks for the help....


Erika
(with a *K*)

"Whatever you can do, or dream you can, begin it. Boldness has genius,
power, and magic in it." - Goethe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-community@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to