Form Validation Pasting problem


P

pdy1013

Hi,

I will code a form valiation in javascript on one page and it will
work great, but when i paste it into another document even though ALL
the fields are correct it won't even work. unless i type it all over
again. I am using the VI editor, does anyone know of a good way to
transfer your scripts from one page to the other or something that
will parse my javascript to see if it is all right.


thanks,


Paul
 
Ad

Advertisements

S

swp

Hi,

I will code a form valiation in javascript on one page and it will
work great, but when i paste it into another document even though ALL
the fields are correct it won't even work. unless i type it all over
again. I am using the VI editor, does anyone know of a good way to
transfer your scripts from one page to the other or something that
will parse my javascript to see if it is all right.

thanks,

Paul

is there a particular reason you are not putting the script into an
include file and using that same include file when needed?

<script language="JavaScript"
src="MyJavaScriptCodeIsInHere.js"></script>

swp
 

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