Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ jquery inline form validation not working

Posted by: rp.html Sep 11 2011, 01:11 AM

hello,

plz refer: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/

I am trying to setup form validation as explained in this article. I am not sure what am i doing wrong, this is not working...coz i am able to pass null values etc.

i am getting no error.


as far as i understood from this post. i added following to my header:

<script src="/jscript/jquery-1.6.1.min.js" type="text/javascript"></script>
<script src="/jscript/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script src="/jscript/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>

<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>


and my form is like this:

<div id="formcontainer" style="height:350px;margin-left:auto;margin-right:auto;">
<form name="longstring_parser" method="post" action="/cgi-bin/process_form_cgi_validate.pl" onsubmit="return Validator(this);">
<div id="longstring_parse_setlist">
<b>Available longstring_reports:</b>
</div>

<div id="rawlongstring" >
<b>longstrings to parse (one in each line/ no blank lines):</b><br/>
<textarea value="one longstring_ in each line" class="validate[required]" type="text" name="longstring_list" id="longstring_list" rows=5 cols=150></textarea>
<p>
<b>give a file name to save with:</b>
<input value="to_file_name" class="validate[required]" type="text" style="width:350px" name="outfile" id="outfile" />
<p>
</div>

<div >
<input type="submit" value="Parse">
<p>
</div>

</form>
</div>

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)