Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 390441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:57:54+00:00 2026-05-12T15:57:54+00:00

I know that a lot of people ask this before , am using really

  • 0

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 .

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 .

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 !!

the Code of js functions :

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') +'&plc='+ $F('plc') +'&email='+ $F('email') +'&text='+ $F('text'),
 onComplete: showResponse 
 });
}

function showResponse(req){
 $('result').innerHTML= req.responseText;
}

the HTML Code of the form :

<form id="addCom" name="addCom" onsubmit="return false;">

    <input type="hidden" id="postid" name="postid" value="$id" />
    <input type="hidden" id="type" name="type" value="news" />

 <label for="author">name :</label><br />
 <div class="inroundi"><input type="text" id="author" name="author" class="validate-input" /></div>

 <label for="plc">place :</label>
 <br />
 <div class="inroundi"><input type="text" id="plc" name="plc" class="validate-input" /></div>

 <label for="email">email :</label>
 <br />
 <div class="inroundi"><input type="text" id="email" name="email" class="validate-email" /></div>

 <label for="text">comment :</label>
 <br />
 <div class="inroundt"><textarea id="text" name="text" class="validate-textarea"></textarea></div>
 <br />
 <div id="result"></div>
 <input type="submit" value="send" onClick="validf()" />

</form>
<script type="text/javascript">
    new Validation('addCom',{immediate : true});
</script>

thank you all .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:57:54+00:00Added an answer on May 12, 2026 at 3:57 pm

    Will thanks for every good guy who help !!

    anyway i get the solution ,

     <div id="result"></div>
    

    this is was similar to another object id in the file validation.js , what i made is to rename it .

    that’s all .

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that a lot of people meet this error. I did do search
I know that a lot of people on the Internet have expressed having problems
I know that this question is asked a lot, I checked all of the
Seems that lot of people already know that issue but I can not find
I wanted to ask for some help. I know, that there are a lot
I know this isn't a programming question, but since a lot of people here
I know that there's a lot of free open source blog engine out there
I know that recursion is sometimes a lot cleaner than looping, and I'm not
I know that it's a subject that can raise a lot of debate, but
I know that there are a few similar questions and I googled a lot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.