Your Internet Explorer version is not compatible with our shopping cart system. Please use version 9 or higher to avoid problems with your order(s). Close
Hi Guys. I am new to using MobiOne and I read online that in order to program functions you should go to the file named projectname_custom.js. I opened this with notepad++, added a function, and saved the file. When I tried to use the function with a button in my app by typing the following code:
whenPressed();
Nothing happened. When I pasted the functions code directly into the button it worked fine. What am I doing wrong?
Really? How do you do that. That would be so useful!
By the way I just tried your recommendation and the program did nothing. Do I need to reopen the project after I make a change? Or are there any prerequisites, do I somehow have to link the file to the project?
Just add the code to the <project_name>_custom.js file and you should be good to go. Have you generated the files for your project? Once you do that the _custom.js file can be found in your project’s www folder.
If after doing that it is not working it might be because you are adding your function in the wrong _custom.js file or there is a javascript error syntax on it so the function can’t be called.