Results 1 to 4 of 4
  1.    #1  
    Is there a way to auto scroll to the top of a scene??? I'd already tried:

    Code:
    this.window.scroll(0,0);
    this.window.scrollBy(0,0);
    this.window.scrollTo(0,0);
    this..controller.get('top').scroll(0,0);   // 'top' is the id of the first <div>
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  2. #2  
    Code:
    this.controller.getSceneScroller().mojo.scrollTo(0,0);
    Quick Post: The quick way to post messages and photos to Twitter & Facebook (video link)
    Music Player (Remix): The next generation music listening experience on webOS (video link)
    GeoStrings: Set location-based reminders and never forget another task (video link)

    Twitter: @Hedami
  3.    #3  
    Thanks Dan, worked great!
    MoBill - Use your Authorize.net account to bill your customers with your webOS device!!
    MoJack - Track your lost or stolen webOS device from anywhere!
    Time to get VIRAL
  4. #4  
    Hey guys,

    Using Ares I'm trying to achieve the same thing. When using Dan's code snippet, it returns:

    Uncaught TypeError: Cannot read property 'mojo' of object (app/assistants/main-assistant.jsjsjs:$30$)

    Any thoughts?


    Never mind - just needed to make a few adjustments. Thanks anyway!

    Code:
    this.controller.get("scrollerID").mojo.scrollTo(0,0);

Posting Permissions