#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    2
    Rep Power
    0

    Question Slow loading of Java methods with the scroll bar


    Hi
    There are circles from the beginning to the load side
    Loaded into the circle was displayed when scrolling down
    but I move the scroll saw to run JavaScript
    Is there a way?
    This is my file
    http++://www++.mediafire.com/?w05t6rjwyk1ab3b
    (remove + in url)
    My desire is that you teach me how to infinite scroll the page to perform
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    27
    Rep Power
    0
    you can try it with jquery with the below link:
    http://api.jquery.com/scroll/

    or with the below code:
    {
    var docViewTop = $(window).scrollTop();
    var docViewBottom = docViewTop + $(window).height();

    var elemTop = $(elem).offset().top;
    var elemBottom = elemTop + $(elem).height();

    return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
    }

    Hope this helps.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    2
    Rep Power
    0

    Question


    Originally Posted by priyankagound
    you can try it with jquery with the below link:


    or with the below code:
    {
    var docViewTop = $(window).scrollTop();
    var docViewBottom = docViewTop + $(window).height();

    var elemTop = $(elem).offset().top;
    var elemBottom = elemTop + $(elem).height();

    return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
    }

    Hope this helps.

    Do you enter this code to the file?
    I'm not too fluent in jQuery?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    862
    Rep Power
    275
    In your HTML you have 2 tags that are not legal markup( span2 and span3).

    Please validate your markup and fix any errors before continuing with the javascript parts.

IMN logo majestic logo threadwatch logo seochat tools logo