Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Forums
The webOShelp.net WebOS / Mojo Developers' Forum
February 28, 2015, 12:45:27 PM *
Welcome, Guest. Please login (using the form in the left column) or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Problem with the ButtonTap Action  (Read 2748 times)
webOS Newb
Offline Offline

Posts: 1

View Profile
« on: May 10, 2010, 12:02:39 PM »

Hey there I've got a problem. I wana get a Alertdialog which comes when a Button was tapped and shows the result of a computation. The button got the ID "berechneButton". I tried something but in won't work.
This is my code:

In the Setup Assistant:

Mojo.Event.listen(this.controller.get("berechneButton"),Mojo.Event.tap, this.handleEvents.bind(this, "ergebnis"));

My Event (Alert) which should started after the button got tapped:

SceneAssistant.prototype.ergebnis = function(event) {
        title: $L("Ergebnis"),
        message: $L(" €"),


What I'm doing wrong? Where is the mistake?

And another question is it possible to display a result of a formula in the message attribut of the AlertDialog?

Thanks a lot for your help!!
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC
SMF customization services by 2by2host.com
Valid XHTML 1.0! Valid CSS!