I think I have a rather simple and straightforward query. It is my understanding of the documentation that JavaScript can be used to call another Tasker task using performTask. I've got an HTML pop-up with a button that I'm attempting to call a task with. But when I click the button, I do not get output of any kind; not an error or any action.
To test, I created a simple Javascriplet action that calls the task and I can run it without issue. I've included a snippet of the code I'm using below. I've tried both performTask and tk.performTask. Please tell me if I'm missing something.
<html>
<script src='Tasker.js'></script>
<script lang='JavaScript'>
// user clicked the button
function buttonClicked() {
performTask('Run - Tweet clip');
}
</script>
<body>
<input id="Button1" title="TweetIt" type="button" value="TweetIt" onclick='buttonClicked();'/>
</body>
</html>
Thanks,
Paul