Validating form using custom script gets hijacked

C

Chris

Using FP2003 with FPSE enabled.

I'm trying to validate a form using a custom Javascript because the FP
built-in validation is not sufficient for my needs. None of the fields are
tagged to be validated by FP. The page code appears to be OK when saved and
also after reformatting HTML, but when re-opening the page in FP, my
"onsubmit" tag is amended to "webbot-onsubmit" and a new tag gets added:

onsubmit="location.href='_derived/nortbots.htm';return false;"

As a consequence, the custom script is not run.

I need webbot functionality to process the form results later on, but how do
I prevent this apparent hijacking?

TIA

Chris
 
R

Ronx

HTTP Publish the web to a server with FrontPage extensions - the
onsubmit should revert to your custom script.
In a disc based web the onsubmit event is used to send the form to an
error message contained in _derived/nortbots.htm.
 
C

Chris

Ron,

thanks for the tip, I should have looked at the published code - it is as I
would want it.

It still doesn't work, but I know where to look now.

thanks,
Chris
 

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

Similar Threads


Top