.ASP and JavaScript

  • Thread starter Thread starter Bill Dross
  • Start date Start date
B

Bill Dross

This boggles my mind though I'm fairly new at this but here goes...

There is an .asp page that captures data and stores it in Access database on
the server. That worked fine. The page was created using FP2003.

After the fact, a small JavaScript was added to the page to do a simple
calculation. Every time I open the page in FP (prior to publishing), all
the JavaScript that was written to do the calculation is gone--completely
deleted from the page.

I'm not sure I have stated all the facts but hope someone has some
suggestions. I need the calculation and I need to store all the results in
the database.

Any help will be greatly appreciated.

Bill
 
Are you also using FP to validate the form field and then modifying the JavaScript generated by FP
to add the calculation?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Yes, there was a validation requiring numbers and length. Does that help,
Tom?
Thanks...
 
Yes.

When you use FP validation, and you need to add a custom validation script, you must first let FP
create the validation, preview in browser, then view source, copy the JavaScript to notepad, add you
custom script code to the FP code, then give the script a new name and any references to
FrontPage_Form1, etc., then in FP in HTML / Code view paste in your modify code, then change the
form to use the script that you gave a new name. Next remove all of the gray webbot tags from the
form. Then in the future if you need to modify the JavaScript code, you will to do so manual and not
use the FP Form Field Validation function.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
Back
Top