facebook

[SOLVED] Reset Panel to scrolltop – refresh etc – How?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #335605 Reply

    MarkoPolo
    Member

    HELP please… this is driving me batty!

    I have a panel with an HTML widginside populated by ajax generated search results. All good, working perfectly, scrolls beautifully etc

    However, when I perform a new search, I want the panel to return to its top position so you view the new results from the top and not where you currently are (scroll pos) in the previous results!

    I’ve tried all manner of scrollTop and iscroll refresh but just cannot get the monkey to work! Any tips would be vastly appreciated as I an getting balder by the second!

    Many thanks in advance!

    Mark

    #335610

    MarkoPolo
    Member

    Had I been able to spell, I would’ve noticed the extra ‘m’

    Just incase anyone else is foxed… I used:

    $(‘#scrollerid’)[0].myScroll.setPosition(0, 0, true) ;

    There might be a more elgant way to do it, but this worked 😀

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: [SOLVED] Reset Panel to scrolltop – refresh etc – How?

You must be logged in to post in the forum log in