facebook

Tutorial: How to Scroll HTML Widget Content (Updated 28 Mar)

  1. MobiOne Archive
  2.  > 
  3. Examples, HOW-TOs
Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • #345057 Reply

    davidg
    Member

    Thanks for the reply.

    That didn’t seem to fix the problem 🙁

    I am still messing around with it though.

    #350141 Reply

    Philip!!!
    Member

    How can i add text instead of numbers?

    #350142 Reply

    davidg
    Member

    @ philip

    try replacing this:

    $("#scroller").append("<div>" + i + "</div>");

    With this:

    $("#scroller").append("<div>" + "Some Text Here" + "</div>");

    using the tutorial code would copy this same text hundreds of times which is probably not what you want. You will have to modify it to do exactly what you want.

    #350146 Reply

    Philip!!!
    Member

    Thank you !

    #350282 Reply

    msmuller
    Member

    This work grate if you just have one screen. I try to use it on a screen that is call’ed by a other screen, and then there is no scroll – how can the bee ??

    (Can’t find upload function, so a link to google docs with a test file)
    https://drive.google.com/file/d/0B6bvZCaoIs6HZXU1R0dJbFJreDg/edit?usp=sharing

    #350324 Reply

    Hi msmuller,

    Thanks for sharing the sample project. I’ll take a look at it asap next week.

    #350340 Reply

    Unknown Author
    Participant

    Your whole setup sounds way too complicated for what you really want to do. I acheive the same results by throwing my feed into a panel and scrolling the panel. Hell, I even give the user the scroll controls!

    https://itunes.apple.com/us/app/bitcoin-feed/id853814625?mt=8

    #350503 Reply

    xhuzen
    Member

    Hi, thanks for the tutorial.

    I follow your instruction on how to use the iscroll code. But i’m having a problem, the iscroll only show/works when i inspect element. I think the refresh function is not working on my app

     $("#scroller")[0].myScroll.refresh();

    . I put it on OnPageChange in my multipage. I have lots of multipage and screens. I tried putting it all my because the iscroll html is rooted on the last multipage but nothing is working.

    Senario:

    multiPage1 ——-I put the call refresh() function here
    >Home
    >Options
    >ContactUs
    >About
    multiPage2 ——//I also put the call refresh() function here
    >page1
    >page2
    >page3
    >html3 ——//this part where my iscroll code is located

    Anybody could help me? I’m having a hard time right now.

Viewing 8 posts - 16 through 23 (of 23 total)
Reply To: Tutorial: How to Scroll HTML Widget Content (Updated 28 Mar)

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