facebook

how to create and process an array of data

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #324888 Reply

    e2pro
    Member

    Does anyone have an example of building an array and using the returned data from the array to populate text fields as well as usinng the returned data in calculations?
    I’m new here and a beginner, so any and all help would be appreciated.

    #324895

    support-michael
    Keymaster

    @e2pro

    >Does anyone have an example of building an array

    Where is the “building an array” taking place? Is it on a web server, for example calling php script or something like that? If yes then take a look at using the json format for creating literal data data structure that can be easily processed in javascript.

    #324897

    e2pro
    Member

    Wayne,

    What I’m trying to accomplish is for example I have an input text field-1.
    Based on the data entered in the text field-1, I need to populate text field-2, 3, & 4 with the results of a table or an array.

    For example:
    text field-1 = 12

    var a10 = new Array[.055,.02722,.08627];
    var a11 = new Array[.055,.03321,.08969];
    var a12 = new Array[.055,.03870,.09283];
    var a13 = new Array[.045,.01842,.06838];
    var a14 = new Array[.040,.01175,.05814];

    text field-2 = .055
    text field-3 = .03870
    text field-4 = .09283

    Advise on how to best handle this.

    My code is if array_custom.js

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to create and process an array of data

You must be logged in to post in the forum log in