Jump to content

Search the Community

Showing results for tags 'getelementsbyclassname'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • General Questions
    • Caspio JavaScript Solutions
    • Tables, Views and Relationships
    • Import/Export and DataHub
    • DataPages
    • Deployment
    • Security, Authentications, Roles, SAML
    • Styles and Localizations
    • Parameters
    • API and Integration
    • Calculations and aggregations
    • User JavaScript and CSS Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


MSN


Website URL


ICQ


Yahoo


Skype


Location


Interests

Found 1 result

  1. Hi, I'l looking for a way to calculate a field after 3 fields are entered. The fields are: OP_Length, OP_Width, OP_Height. I put a virtual field on the form, named Virtual2, label Volume Calculated, display only Volume = length * width * height Searching here i came to the following, but cannot get it to work. Is that because the Virtual field is not referenced to with the right parameter: getElementsByClassName('cbFormData')[0]; ? <script type="text/javascript"> // Caspio form elements var length = document.getElementById('InsertRecordOP_Length'); var width = document.getElementById('InsertRecordOP_Width'); var height = document.getElementById('InsertRecordOP_Height'); var volume = document.getElementsByClassName('cbFormData')[0]; var caspioForm = document.getElementById('caspioform'); // Event handler var calculateVolume = function (event) { // TODO: Do something on value change --> volume = length.value * width.value * height.value; } // Run total calculation on input to any of these two fields length.addEventListener('input', calculateVolume); width.addEventListener('input', calculateVolume); height.addEventListener('input', calculateVolume); </script>
×
×
  • Create New...