Scrolling back to page top

7 views
Skip to first unread message

WG

unread,
Jun 8, 2015, 9:28:22 PM6/8/15
to jqt...@googlegroups.com
Hello,

I had a phonegap app developed for me by a third-party firm, and now I'm just putting the finishing touches on it. They are using the jQTouch library for page navigation.

One two data input pages, I have a "submit" button that submits data to my API, and returns data which is then displayed on a result page. On that result page, I have a button going back to the data entry page. Here is the code:


<div id="newdata" >
...
</div>

var NEWDATA = "#newdata ";
...
App.jQT.goTo(NEWDATA);


which all works great, but when the app goes back to the #newdata page (div) it's still scrolled to the bottom where the submit button is.

I've been trying dozens of different things (via google) to get the page to scroll back up to the top when a user returns to the page, but I've come up empty.

This has to be a pretty simple thing to do, right? Can anyone provide a pointer in the right direction for me?

thanks.

Bruno Alexandre

unread,
Jun 12, 2015, 7:19:11 AM6/12/15
to jqt...@googlegroups.com
Add your question to http://stackoverflow.com/ 

I'm sure you get an answer much faster!

--
You received this message because you are subscribed to the Google Groups "jQTouch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jqtouch+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

WG

unread,
Jun 12, 2015, 10:40:02 AM6/12/15
to jqt...@googlegroups.com

yes -- I did that too!   
Reply all
Reply to author
Forward
0 new messages