<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>The first error is the onclick in the
href</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the next error is in the formfield:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You are closing the write parenthesis to early, you
have 2 of them!</FONT></DIV>
<DIV><FONT face=Arial size=2>example: </FONT></DIV>
<DIV><FONT face=Arial size=2>val.document.write('<td class="c2">' +
window.document.forms[0].first.value) + '</td></tr>');</FONT></DIV>
<DIV><FONT face=Arial size=2>
1
2!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>function validate(){<BR> var val =
window.open("","","width=300,height=250,scrollbars,menubar");</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "<A
href='http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n</A>
<html xmlns="<A
href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"
xml:lang="en" lang="en">\n <head> <title>Form
Validation</title>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<style
type="text/css">\n body{font-family: arial, helvetica, sans-serif;
background-color:#cccccc; text-align:center;} td{padding:5px;}
td.c1{text-align:right;} td.c2{text-align:left;}
</style></head>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> val.document.write('<body>')</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> val.document.write('<table><tr><td
colspan="2">Please validate form
contents:</td></tr>')</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<tr><td
class="c1">First Name:</td>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<td class="c2">' +
window.document.forms[0].first.value) + '</td></tr>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<tr><td
class="c1">Last Name:</td>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<td class="c2">' +
window.document.forms[0].last.value) + '</td></tr>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<tr><td
class="c1">Email:</td>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<td class="c2">' +
window.document.forms[0].email.value) + '</td></tr>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<tr><td
colspan="2"><form>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.write('<input type="button"
value="Information Correct: Submit" onclick="opener.cgiSubmit(); opener.close();
window.close();" /> <input type="button" value="Revise Form"
onclick="window.close();" /></td>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2> val.document.write('</form></td></tr></table>');<BR> val.document.write('</body></html>');</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> val.document.close();<BR>}</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=christ@saeweb.com href="mailto:christ@saeweb.com">Chris Tifer</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 20, 2004 3:53
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Form
validation</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Seeing as that's a string, I wouldn't think that
would be a problem. Try escaping it to test if that would help (although I
never considered - to be a special character although I guess it could be
considered so since it's the expression used for subtraction.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I normally use underscores instead of dashes when
naming files so never ran into something like this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris Tifer</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=allard-schripsema@procergs.rs.gov.br
href="mailto:allard-schripsema@procergs.rs.gov.br">allard schripsema</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">[JavaScript List]</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 20, 2004 1:48
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] Form
validation</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>this is the line that generates the
error</FONT></DIV>
<DIV><FONT face=Arial size=2><a href="#"
onclick="window.open('p-js-fval.htm','p-js-fval','top=10,left=200,width=500,height=350,resizable,scrollbars');">Form
Validation</a><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>If you change 'p-js-fval.htm','p-js-fval' to
names without the "-" it works .</FONT></DIV>
<DIV><FONT face=Arial size=2>Anybody knows why?</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ismark@ismdesigns.com href="mailto:ismark@ismdesigns.com">Ira S.
Mark</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">JavaScript list post</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, February 20, 2004 3:32
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Javascript] Form
validation</DIV>
<DIV><BR></DIV><BR>List: I have my script debugged successfully (debugger
moz1.6win) but the functions are not calling. The coding seems pretty
straight forward, form validation, viewer to review entries on separate
window. I would be grateful if someone could take a look.<BR><BR><A
class=moz-txt-link-freetext
href="http://www.ismdesigns.com/test/portfolio/p-js.htm">http://www.ismdesigns.com/test/portfolio/p-js.htm</A>
>Form Validation. Neither of the input buttons on p-js-fval.htm
works, "Submit" or "Clear".<BR><BR>Thanks, Ira<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript
mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE>
<P>
<HR>
<P></P>_______________________________________________<BR>Javascript mailing
list<BR>Javascript@LaTech.edu<BR>https://lists.LaTech.edu/mailman/listinfo/javascript<BR></BLOCKQUOTE></BODY></HTML>