facebook

Vincenty – Find Unknown Lat Lon

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

    SKnoxmn
    Member

    How to get user input as a variabel to be used in a function?

    Also, how to take returned data from previous function and use that in the “New” function…?

    Basically, I’d like to have an “onClick” to take the data that is on screen and use that data in a function. Along the lines of post or get I’m guessing.

    SKnox

    #342085 Reply

    SKnoxmn
    Member

    So heres what I’m thinking;

    run the functions to get the data all into one place, such as the device screen. Each “area” of the screen where data has been posted would have its own uniqueID.

    I would then use a button with an “onClick” to run a function. This function would then get the data by the uniqueID and somehow use that as the named variable in the “distance” calculation formula…

    and in the end, it would then post the new location data into a field on the device.

    Ok so hows that for logic? Does it flow? Am I overlooking something obvious?

    SKnox

    #342090 Reply

    SKnoxmn
    Member

    function destVincenty(lat1, lon1, Dir, dist) {
    var lat1 = document.getElementById(‘lat1’);
    var lon1 = document.getElementById(‘lon1’);
    var dist = document.getElementById(‘dist’);
    var Dir = document.getElementById(‘brng’);

    Will this get the data from the device as it is currently and then create the VAR lat1, lon1, dist and Dir? and can those then be used in the rest of the function….?

    Or is the “document” supposed to be the M1-Learning-FieldNameHere?
    Or maybe I don’t need the ‘ single quotes ‘ on these?
    SKnox

    #342092 Reply

    SKnoxmn
    Member

    Ok so that didnt work.

    This time I’ll post what I have and see if anyone can assist me in getting the information to the device.

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Vincenty – Find Unknown Lat Lon

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