Closed dosqe closed 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
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'...
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
Thats exactly what I need - THANKS! :) You sort of saved my life :D
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!