title: How to call a function properly with javascript
body: <p>I've built an app with Appery and I have just one little function that doesn't appear to work correctly when I export the app and install it and test it.</p>
  
  <p>The intended function is to be called "onclick" and when it happens, it's supposed to call the restful api service called dovoiceDelete.execute();</p>
  
  <p>Here's the code:</p>
  
  <pre><code>var doDel = confirm("Are you sure you want to delete this voicemail?");
  
  
  if(doDel === true){
  
      dovoiceDelete.execute();
  }
  </code></pre>
  
  <p>The issue is, within the app, when you click on the button, nothing happens. The call doesn't get executed - and the confirmation window doesn't open up.</p>
  
  <p>Not quite sure why - as this is pretty straight forward javascript, and not sure why it's not being executed properly.</p>
  
  <p>If it matters, Appery builds hybrid HTML5/jQuery style apps and my app is just that.</p>