[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

jquery remote validation

Posted on 2014-08-22
2
Medium Priority
?
557 Views
Last Modified: 2014-09-16
I am trying to validate the form using jquery remote validation. So the idea is I need to validate the field and check if the field is not already in the database. I got the remote call and it returns false but the form is still not submitting

<cfsavecontent variable="customRules">
      {
       onkeyup: false,
   
   onfocusout: false,
 rules: {
   
    Text:{
      required: true,
      remote: {
        url: "index.cfm&returnformat=json",
        type: "post",
        async:false,
        data:{'Text':function(){return $('#Text').val()},'ID':function(){return $('#ID').val()}}
       
        }
      }
      },
      messages:{
         Text:{remote: "Item Text is already in use." }
    }
}

</cfsavecontent>
0
Comment
Question by:erikTsomik
1 Comment
 
LVL 43

Accepted Solution

by:
Rob earned 1500 total points
ID: 40279993
This looks more like ColdFusion than jQuery

Can you post all your jQuery code as you're missing the $(document).ready(function() {});
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month19 days, 12 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question