webOShelp.net

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

Home Forums
The webOShelp.net WebOS / Mojo Developers' Forum
August 27, 2014, 06:56:07 AM *
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]
  Print  
Author Topic: Problem with the ButtonTap Action  (Read 2574 times)
douth
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:


Code:
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:


Code:
SceneAssistant.prototype.ergebnis = function(event) {
   
    this.controller.showAlertDialog({
        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!!
Logged
Pages: [1]
  Print  
 
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!