DataZombies / jQTouch

jQT extensions jqt.activityIndicator, jqt.bars (with numeric badges), jqt.checkGroup & jqt.segmentedControl.Get updates via Twitter http://twitter.com/HeadDZombie. If you find this fork useful please make a donation via PayPal (http://tinyurl.com/2fpmx27). See below for demo links.
MIT License
159 stars 34 forks source link

iScroll object not accessible in bars #57

Closed dosqe closed 12 years ago

dosqe commented 12 years ago

I don't know if this is an issue, but in my view it is. From outside the jqt.bars extension, the iScroll object is not accessible (or I didn't found it). I need it for the function iScroll.scrollTo(), which I have to call by another function. It seems like nobody has the same problem, so i ask here.

Maybe someone knows a solution or the correct object name. Thanks!

DataZombies commented 12 years ago

Works fine for me. Code sample please.

Sent from my iPhone

On Jun 10, 2011, at 5:52 AM, dominicsereply@reply.github.com wrote:

I don't know if this is an issue, but in my view it is. From outside the jqt.bars extension, the iScroll object is not accessible (or I didn't found it). I need it for the function iScroll.scrollTo(), which I have to call by another function. It seems like nobody has the same problem, so i ask here.

Maybe someone knows a solution or the correct object name. Thanks!

Reply to this email directly or view it on GitHub: https://github.com/DataZombies/jQTouch/issues/57

dosqe commented 12 years ago

How do you access it? I tried iScroll, scroll, iscroll and a few more, but none of them are working.. In your code you use iScroll as obj. name, but from outside it gives an 'undefined'...

DataZombies commented 12 years ago

The iscroll object is attached to the div with the scrollwrapper class. To use it do...

$('.current .s-scrollwrapper').data('iscroll').

Also read the documentation at the top of jqt.bars.js and http://cubiq.org/iscroll-4

Sent from my iPhone

On Jun 10, 2011, at 7:44 AM, dominicsereply@reply.github.com wrote:

How do you access it? I tried iScroll, scroll, iscroll and a few more, but none of them are working.. In your code you use iScroll as obj. name, but from outside it gives an 'undefined'...

Reply to this email directly or view it on GitHub: https://github.com/DataZombies/jQTouch/issues/57#comment_1341662

dosqe commented 12 years ago

Thats exactly what I need - THANKS! :) You sort of saved my life :D