writing an FP validation script to an external .js file

C

chris

I have searched the NG and did not turn up anything along the lines I
need. Please forgive me as I am not an FP user but inquiring for my son
who is trying to develop a web site with an older version of FP until he
can upgrade.

One of his pages requires a complex validation script for submitting
scores. The FP script works well but is contributing about 75 KB to the
page weight. Is it possible to have FP write that script to an external
..js file and insert the code to invoke the script externally? If
possible, what version of FP would he need? And what would need to be
done through FP?

Secondly- because of the complexity of the validation needed, many lines
of FP commenting appear in the code with each validated cell
(ex.<!--webbot yada yada -->) The commenting is also adding to page
weight as there are at least 150 validated cells. Is there an easy way
to remove the commenting from the html through FP once the page is ready
for it's final published form to decrease the file weight? And if so, how?

Thanks. Any help you can provide is greatly appreciated
 
T

Thomas A. Rowe

No version of FP can write the script to an external file, as it would not be able to manage it.

You can copy the script by doing a view source in the browser, then you can remove ail of the webbot
tags, from the page, however FP will then no longer manage the validation script.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
C

chris

Thank You, Thomas. That clears a bit up. One last thing -when you say
that FP will no longer manage the script if comments are removed, do you
mean it will be unable to manage returned results or that as I assume,
the script will not be alterable by/through FP, or both? :)
 
T

Thomas A. Rowe

Once the script is created, it is executed in the browser, not by FP.

What I meant by manage, is that once you remove the webbot code/tags, FP is no longer aware of the
script in your page, so you will have to manually modify it, if needed.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top