Results 1 to 2 of 2
  1.    #1  
    I have a page with multiple widgets but I want the focus to be on an IntegerPicker widget so that if the user starts to type numbers, it will automatically enter into the correct field (instead of the first one on the screen).

    I saw some examples in the WebOS book so I tried the following with no luck:
    Code:
    <div class = "palm-row" x-mojo-focus-highlight = "true">
    	<div class = "palm-row-wrapper">
    		<div class="label left">MINS</div>
    		<div id='mymins' x-mojo-element="IntegerPicker"></div>
    	</div>
    </div>
    I also tried to use "autofocus", like the text/password fields and that had no effect.

    I know there has to be a way to do this. Any help would be appreciated.
  2.    #2  
    I tried the following:
    Code:
    MainAssistant.prototype.activate = function(event) {
    	this.myminsField.mojo.focus();	// put focus on minutes field DOES NOT WORK
    }
    The above code works perfectly for text/password fields but does not work for Integer fields. Damn it.

Posting Permissions