PDA

View Full Version : call java script function at the end of scroll



chathura992
04-05-2012, 09:42 PM
Hi,

I have developed an web application which display top blogs added by the user to that website.
I am displaying data in gridview. i have given pagination to gridview.
Now i want that "if i scroll down the page, then gridview automatically expands.
Ex: Initially it contains 10 records, when i scroll down page at bottom it should show me next 10(Total 20) record, again when i scroll down it should again show me next 10(Total 30) records without refreshing the page.
This is just like facebook, when you scroll down the page it automatically shows you older posts.

i know i need ajax and java script but i have no idea how to use them should i call a java script function in on scroll method if it is so how i call that function at the end of scroll (when scroll reach to bottom of the page ) i need more explanation on that javascript function please some one help i am stuck

If anyone knows how to do this, Please reply...

Thanks,

crobinson42
04-13-2012, 12:54 AM
You need to look into jQuery..what your talking about is similar to how facebook loads on the fly content as you scroll further down... there are a lot of different methods to accomplish this but none that are reletively simple.