Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 46
Registered: ‎05-03-2011
My Device: 9930, PlayBook
My Carrier: Verizon

Cross-browser scroll position

I am using jQuery to develop my application. I don't think that jQuery's scrollTop method is compatible with the OS 5 browser, where $(window).scrollTop() always returns 0 (at least, in navigation mode it does).

 

Is there a cross-bb-browser method of determining the scroll distance, in pixels, from the top of the page? 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Cross-browser scroll position

Yeah BB5 has a problem getting the scroll position.. but it can set the scrollTop.. I know.. Wierd...

 

You could try out an extension I made a while ago where you can subscribe to an event that will trigger when the scrolling stops that will give you the horizontal and vertical position

 

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/Screen

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Highlighted
Contributor
Posts: 46
Registered: ‎05-03-2011
My Device: 9930, PlayBook
My Carrier: Verizon

Re: Cross-browser scroll position

Thank you. I will take a look at that.
Contributor
Posts: 30
Registered: ‎02-05-2013
My Device: 9860
My Carrier: Vodafone

Re: Cross-browser scroll position

Hi,

 

I am facing the same issue on BB10 webworks application.

 

Is there a solution for the same?

 

Thanks in advance.