09/16/2009, 06:18 AM
|
#1 (permalink) |
|
Forum Moderator
![]() ![]() Join Date: Sep 2009
Location: Ontario, Canada
Posts: 136
Likes Received: 0
Thanks: 14
Thanked 38 Times in 15 Posts
|
Hello,
I've been trying various methods to get a button that will go to the next scene when tapped on. I used the Code:
<div x-mojo-element="Button" id="today" class="palm-button" x-mojo-tap-highlight="momentary>Today</div> Thanks! |
09/16/2009, 03:48 PM
|
#2 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 51
Likes Received: 0
Thanks: 0
Thanked 5 Times in 5 Posts
|
In you scenes setup function:
Code:
Mojo.Event.listen( this.controller.get( 'today' ), Mojo.Event.tap, this.ShowToday.bind( this ) ); Code:
SomeSceneAssistant.prototype.ShowToday = function(event) {
Mojo.Controller.stageController.pushScene( 'today' );
}
Code:
Mojo.Event.stopListening( this.controller.get( 'today' ), Mojo.Event.tap, this.ShowToday.bind( this ) ); |
![]() |
|
| Tags |
| developer, development, homebrew, palm, webos |
| Thread Tools | |
| Display Modes | |
|
|



