Jump to content

Search the Community

Showing results for tags 'dat entry by a script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Caspio Bridge
    • Caspio Apps for Ukraine
    • 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. Here's what it looks like, I can't figure out why calculate2 function won't enter data into the table. <SCRIPT LANGUAGE="JavaScript"> function calculate() { var v_field1 = parseFloat(document.getElementsByName("cbParamVirtual2")[0].value); if (isNaN(v_field1)) v_field1 = 0; var v_field2 = parseFloat(document.getElementById("InsertRecordPrincipal_Portion").value); if (isNaN(v_field2)) v_field2 = 0; var v_field3 = parseFloat(document.getElementById("InsertRecordAdditional_Principal").value); if (isNaN(v_field3)) v_field3 = 0; var v_total = (v_field1 - v_field2 - v_field3); document.getElementById("InsertRecordPrincipal_Balance").value = (v_total); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate; function calculate2() { var v_field1 = parseFloat(document.getElementsByName("cbParamVirtual2")[0].value); if (isNaN(v_field1)) v_field1 = 0; var v_field4 = parseFloat(document.getElementById("InsertRecordInterest_Rate").value); if (isNaN(v_field4)) v_field4 = 0; var v_total = (v_field1 * v_field4/1200); document.getElementById("InsertRecordInterest_Portion").value = (v_total); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate; </SCRIPT>
×
×
  • Create New...