a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Java Script Question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Java Script Question
Page: [1]
 
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
Java Script Question - 4/10/2001 20:11:00   
I have a form that registers a user. It works fine. Now I am trying to create a validation script that checks the password and confirm password fields. I opened the page with notepad and I can see the Java Script for the Form Validator that Front Page created. I want to insert another validation for it to check these fields.

I think I have the validation correct and Im almost sure on where to insert it. Here is what I want to try to use:

if (theForm.Confirmpw.value != theForm.Password.value)
{
alert("Password Field and Confirm Password Field do not match. Please make sure the values in these fields match and then submit the Form!");
theForm.Confirmpw.focus();
return (false);
}

I think it will work. If it doesn't I want to try == instead of !=. The problem is that when I insert the script (using notepad in FP) it doesn't save it! I've even tried to update the file in My documents (successful) and to import it into FP (successful) but when I open it (with notepad) to see if the script is there before publishing it, its not there!!!

When I open the page and view it with the FP Editor I cannot see the Java Scripting. I think I know where it is but I just cannot see it.

Any idea on what I have to do to accomplish this?

abbeyvet

 

Posts: 5095
From: Kilkenny Ireland
Status: offline

 
RE: Java Script Question - 4/10/2001 20:19:00   
There are always problems adding javascript validation routines to FP forms. It is may understanding - and I would be delighted to be corrected - that they only work in situations where you have not used FP validation on other form fields.

------------------
Katherine

InKK Design
LinKKs - Kilkenny's Online Magazine


-*-*-*-*-*-*-*-*-*-*
"Dogs have owners, cats have staff!"


(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Java Script Question - 4/10/2001 23:25:00   
quote:
Originally posted by abbeyvet:
There are always problems adding javascript validation routines to FP forms. It is may understanding - and I would be delighted to be corrected - that they only work in situations where you have not used FP validation on other form fields.



Thanks, I did not know that! So here's another fine mess I'm in now. I know that this can be done because I've seen other FP sites with it. Can I just add a Java Script in my HTML page or do I have to undo the Form Validatoe and do all of the Validating in Java. Or.......

Is there a trick that Somebody Knows????
Thanks


(in reply to Dealer58)
Dealer58

 

Posts: 174
From: New York (was in Germany)
Status: offline

 
RE: Java Script Question - 4/12/2001 20:17:00   
Hi Spooky

Please take a look at this. I looked at the fpdbform.inc because I thought I'd find that Javascript there so I could edit it.. NG. Where the heck is it?


(in reply to Dealer58)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> General Web Development >> Java Script Question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts