www.webdeveloper.com
Results 1 to 7 of 7

Thread: Expand Div tag by scroll

  1. #1
    Join Date
    Apr 2012
    Posts
    2

    Question Expand Div tag by scroll

    Hello!

    I'm new to java, could you pease inform me what I need to do in order to expand the Div tag when the user scrolls down to the bottom of the page, like for e.g. on this page http://9gag.com/

    Thank you in advance!

  2. #2
    Join Date
    Apr 2010
    Location
    Oslo, Norway
    Posts
    89
    If you are new to javascript, this is not a "small task".
    You need to check the scrolloffset upon the scrolling-event and download more content in the background using ajax, provided you have a server capable of handling them.
    I suggest you do some searches on "loading dynamic content", "ajax" and "jquery" , and teach yourself more about general javascript before you start with something like that.
    - Spinner
    Producer, Developer, Gamer, Father and Husband.

    Spinners Web-development blog

  3. #3
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    I don't think that is expanding any div. I think that is a Facebook-style "get more content and tack it on to the end when the screen gets down to a certain point" kind of function. Most likely using AJaX.
    |||||
    o . Q
    ___ "You live and you learn; or you don't live long." - Lazarus Long

    ^_^

  4. #4
    Join Date
    Apr 2010
    Location
    Oslo, Norway
    Posts
    89
    And for the record, Java and Javascript are two very different things...
    - Spinner
    Producer, Developer, Gamer, Father and Husband.

    Spinners Web-development blog

  5. #5
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    Quote Originally Posted by Spinner View Post
    And for the record, Java and Javascript are two very different things...
    ...and the both lead ya rite tu da HELL
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

  6. #6
    Join Date
    Apr 2012
    Posts
    2

    Thumbs up Plur

    Thank you for your kind answers!

  7. #7
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    nenson, if you like coding, all you need is time. of course one can get much help at these forums - some people even get their assignments resolved with no any personal effort (sometimes i saw such things) - but these forums and these great people who help the others will never replace the personal experience
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles