Giter Club home page Giter Club logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
Is there any error in JS cosole?
Validation works fine in 
http://jquery-datatables-editable.googlecode.com/svn/trunk/addingrecords.html 
here is used 1.2.8. version. I have checked it in the FF, Chrome and IE.

Is it possible that you have some other script that override submit function 
and sent request to the mypage.php?

Original comment by [email protected] on 15 Jun 2011 at 11:54

from jquery-datatables-editable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
you need to make sure you include jquery.validate.js in your page's header, and 
you need to have a function like this:

$("#formAddNewRow").validate({
        rules: {
            input1: "required",
            input2: "required",
        },
        onkeyup: false,
        onclick: false,
        messages: { },
        invalidHandler: function(e, validator) {
            var errors = validator.numberOfInvalids();
            if (errors) {
                var message = errors == 1
                    ? 'You missed 1 field. It has been highlighted below'
                    : 'You missed ' + errors + ' fields.  They have been highlighted below';
                $("div.error span").html(message);
                $("div.error").show();
            } else {
                $("div.error").hide();
            }
        }   
});

Original comment by [email protected] on 16 Jun 2011 at 12:09

from jquery-datatables-editable.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024

Original comment by [email protected] on 15 Sep 2011 at 10:21

  • Changed title: Adding form freeze when validate plugin is not included
  • Changed state: Done
  • Added labels: Type-Other
  • Removed labels: Type-Defect

from jquery-datatables-editable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.