facebook

Where Should I put the javascript code?

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

    RichardOne
    Member

    Hi,

    Being new to java; where would you put the code snippets into a project?

    I ask because I can see that in properties, there is a value where you can select a java action and then a window opens to paste a code snippit in?

    Hope that makes sense?

    Regards,

    #343430

    @RichardOne,

    >I ask because I can see that in properties, there is a value where you can select a java action and then a window opens to paste a code snippit in?
    You can either write your code there or just call a function that is placed on your custom.js file. But, you should consider that it’s easier to debug when the javascript code is in the javascript file. See more info here: http://www.genuitec.com/mobile/docs/workingWithGeneratedFiles/workingWithGeneratedFiles.html#binding_javascript_function

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Where Should I put the javascript code?

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