Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript Valadation

Status
Not open for further replies.

crmayer

Programmer
Nov 22, 2002
280
US
I am using frontpage 2000 to design an online application and I am running into a problem with the validation on some fields. I am using the frontpage validator and everything was working fine. Then I wanted to modify the javascript to force a user to fill in a field if asnwered yes to a radio button. When I try to do this in frontpage, it does not show me the javascript for this function, I think Frontpage names it "FrontPage_Form1_Validator(theForm)". If I upload my page to our unix server and edit the file there, the Validator function is there, but it will not show it in frontpage. The problem is if I edit it on the unix side, then pull the file back down to my pc and open it in frontpage, the code I changed gets wiped out. Is there a way to have frontpage display this code/javascript? The javascripts that I manually added are there, but not the one created by FrontPage?

Any Ideas or help on this?
 
Hey

My advice would be ditch FrontPage validation because it's rubbish.

You can use client side validation (JavaScript) or server side validation (Active Server Pages). Probably use JavaScript client side as it cuts down on the number of times you need to make a call to the web server.

Join the Tek-Tips JavaScript forum and start searching for forms validation. There are loads and loads of examples - I've used a few myself in my time. All you would need to do is stick the JavaScript into the <head> of your page within a function, then call that function with an onSubmit command from within your <form> tag.

Hope this helps,
Craigieboy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top