facebook

Noob – Sorry

💡
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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #334858 Reply

    AppMiesterTM
    Member

    I am a typical C# .NET, PHP developer so I ‘get’ the Java syntax, however I am a bit confused on how to collaborate the java code with Mobi.

    Example, I have a toggle that when changed I want it to check a variable value and based on that variable do something.

    Im looking for something like this (syntax not correct, new to Java)

    function OnChange(toggle1)
    if(var == $true){do something here}else{do something else}

    or a way to check if the toggle is ‘on’ or ‘off’

    function GetToggleStatus(toggle1)
    toggleStat == toggle.status; //or something like that

    I just dont know how to grab the objects from mobi in java it that makes any sense.

    Thanks

    AppMiesterâ„¢

    #334882

    paulD
    Member

    Hi There

    Mobione uses the Jquery library http://jquery.com/ for its selector method. So to select a object instance is something like this

    $(‘#m1-timeCalc-time2’) so breaking it down $(‘#’) is the Jquery selector – m1 is the mobione identifier(its the same for all mobione projects – timeCalc is the name you gave your mobione page – anf finally time2 is the instance name you gave to the object in the object property panel.

    Attachments:
    You must be logged in to view attached files.
    #334896

    AppMiesterTM
    Member

    Ok, thanks. Still learning this stuff

    #334898

    paulD
    Member

    No problems glad to help. Javascript has been a bit of slap around the chops for me too!

    #334911

    AppMiesterTM
    Member

    Sure is!! As far as self-learning material, is there anything you recommend??

    Thanks

    AppMiesterâ„¢

    #334924

    paulD
    Member

    well if you have a bit of cash the lynda.com intro to javascript is pretty good and they have quite a few jquery ones as well. Worth buying a months subscription or so. Not found much else to be honest

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Noob – Sorry

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