Hi.
This may be a little obvious for some of you, but I can't figure out how to do it.
I want to execute the orders on a js file when I click an image.
I don't want to create a Window, and give it the url param (I'm having problems with nested windows on Android).
Thanks for help.
Android 2,1. Ti SDK 1,7,1
1 Answer
Accepted Answer
Could you elaborate a bit more on what exactly you need?
If I understood you correctly, you could always wrap what you want from this new js file into a function, include it into your current js file and then just call the function when your image has been clicked.
Ex:
Your other JS file
function functionFromMyOtherJSFile() { //Do Stuff }Main JS File
Ti.include("./myOtherJsFile.js"); myImageView.addEventListener('click', function(e)) { functionFromMyOtherJSFile(); }
Your Answer
Think you can help? Login to answer this question!