Click to See Complete Forum and Search --> : Question about defining JS


russellbain
06-29-2007, 06:33 AM
I have a web email form that sends data input by a user to my inbox. The form works perfectly and emails the data as it should but i get an error down in the bottom left hand side of IE and when i click on it it says :

Line: 182
Char: 1
Error: 'js' is undefined
Code:0
URL: URL/contact.htm

There are no characters on line 182 of this file? Here is the code that leads up to line 182. If you need any more code please ask and i will paste it in.

<script type="text/javascript" src="js/wforms_validation.js"></script>
<form action="processbox.php" method="POST" onSubmit="wforms_validation">

<input type="hidden" name="required" value="name,phone" />
<input type="hidden" name="subject" value="Comments from URL.com" />
<input type="hidden" name="redirect" value="../thanks.htm" />
<input type="hidden" name="recipient" value="russell@URL.com" />
<input type="hidden" name="missing_fields_redirect" value="../ferror.htm" />

<script type="text/javascript">
wFORMS.showAlertOnError = false;
</script>



</script> is on line 181.

Thanks in advance!

Banana Ananda
06-29-2007, 08:12 AM
It may say: "URL: URL/contact.htm", but the error could be on that line in any linked script.

russellbain
06-29-2007, 08:19 AM
what would you say is the likely candidate? I am still a beginner at all of this.

There is the contact.htm page, and a number of javascript and php scripts?

Banana Ananda
06-29-2007, 08:27 AM
No idea (although it can't be a PHP script).

This kind of thing is a pain in IE. I'd go through each script file in turn, add a couple of blank lines, save, refresh, then see if the reported line number changes (told you it was a pain). I presume you have a multi-file editor, like Textpad.

Finding this error may be easier in Firefox.

russellbain
06-29-2007, 08:28 AM
Ok thanks for your response

unfortunatly i am not in the office but will try this on monday when i get back and post my results.

Thanks!