Note that there are some explanatory texts on larger screens.

plurals
  1. POObject doesn't support this property or method validation.js line 124
    primarykey
    data
    text
    <p>I know that a lot of people ask this before , am using really easy field validation with prototype , its very nice script , but the problem that i use this thing in an ajax form .</p> <p>i know that your answer will be to extend the elements in my js code , the problem is not in the validation.js code itself but in another function that i built to check if all fields in the form are valid according to validation.js rules , if it's all ok then the code go and call the function that include the ajax request , its work in ff and chrome and opera , but not in ie .</p> <p><strong>now i know that the problem in the function validf() but i dont know which element to extend and exactly how , this is the whole stroy !!</strong></p> <p>the Code of js functions :</p> <pre><code>function validf(){ var valid = new Validation('addCom'); var vresult = valid.validate(); if(vresult){ return sendCom(); }else{ $('result').innerHTML= ''; } } function sendCom() { new Ajax.Request("sendcom.html", { method: 'post', postBody: 'author='+ $F('author') +'&amp;plc='+ $F('plc') +'&amp;email='+ $F('email') +'&amp;text='+ $F('text'), onComplete: showResponse }); } function showResponse(req){ $('result').innerHTML= req.responseText; } </code></pre> <p>the HTML Code of the form :</p> <pre><code>&lt;form id="addCom" name="addCom" onsubmit="return false;"&gt; &lt;input type="hidden" id="postid" name="postid" value="$id" /&gt; &lt;input type="hidden" id="type" name="type" value="news" /&gt; &lt;label for="author"&gt;name :&lt;/label&gt;&lt;br /&gt; &lt;div class="inroundi"&gt;&lt;input type="text" id="author" name="author" class="validate-input" /&gt;&lt;/div&gt; &lt;label for="plc"&gt;place :&lt;/label&gt; &lt;br /&gt; &lt;div class="inroundi"&gt;&lt;input type="text" id="plc" name="plc" class="validate-input" /&gt;&lt;/div&gt; &lt;label for="email"&gt;email :&lt;/label&gt; &lt;br /&gt; &lt;div class="inroundi"&gt;&lt;input type="text" id="email" name="email" class="validate-email" /&gt;&lt;/div&gt; &lt;label for="text"&gt;comment :&lt;/label&gt; &lt;br /&gt; &lt;div class="inroundt"&gt;&lt;textarea id="text" name="text" class="validate-textarea"&gt;&lt;/textarea&gt;&lt;/div&gt; &lt;br /&gt; &lt;div id="result"&gt;&lt;/div&gt; &lt;input type="submit" value="send" onClick="validf()" /&gt; &lt;/form&gt; &lt;script type="text/javascript"&gt; new Validation('addCom',{immediate : true}); &lt;/script&gt; </code></pre> <p>thank you all .</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload