Git Product home page Git Product logo

Comments (4)

jeff1evesque avatar jeff1evesque commented on May 12, 2024

5914b93: We've implemented field_determinant() to Upload file, and XML file case within the Supply Dataset fieldset.

from machine-learning.

jeff1evesque avatar jeff1evesque commented on May 12, 2024

Since, html_form.js is called beforehtml_form_delegator.js, we may need to either merge the two scripts, or reload html_form.js each time html_form_delegator.js is executed.

Note: both scripts are referenced in tests/php/index.php.

Before proceeding with the above two scenarios, we will begin testing using jsfiddle, with the following code from html_form.js:

  function field_determinant(element) {
    var num_elements = element.length;

    for (var i = 0; i < num_elements; i++) {
      if(element[i].value.length < 1)
        return false;
    }

    return true;
  }

from machine-learning.

jeff1evesque avatar jeff1evesque commented on May 12, 2024

We have our jsfiddle example working properly. However, the fiddle requires the input fields to be well defined in the DOM prior to the execution of the jquery .on() method. To implement this concept into our above goal, we need to ensure all elements created by html_form.js occurs prior to the logic components of html_form_delegator.js, and within the same scope. Otherwise, the form elements created by html_form_delegator.js does not have proper scope such that we cannot enforce all form array elements to be filled before the conditional logic of html_form.js gets executed.

As mentioned above, we may need to either merge the two scripts, or reload html_form.js each time html_form_delegator.js is executed.

Note: we can implement the above jsfiddle example without the required use of the jquery .each() method.

from machine-learning.

jeff1evesque avatar jeff1evesque commented on May 12, 2024

bb54ed5: we decided to bind the .on() method to an already existing <form> element that was created prior to any javascript, specifically within tests/php/index.php.

The form behaves as intended with the exception of the following two cases:

  • Analysis Session: deleting an existing field under the Known Factors fieldset should remove the form submit button
  • Training Session: defining fields within the Classification Parameters fieldset creates the form submit button, when we add more Dependent, or Independent variables. Currently, if we do not add additional fields, then the submit button will be properly added to the DOM if the initial Dependent, and Independent fields are defined. Also, we will need to be able to remove the submit button when reselecting a choice within the Training Type fieldset, or if one of the fields within the Classification Parameters fieldset is made blank.

from machine-learning.

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.