Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to display the previous result if the user clicks "refresh the page" in jquery?

Hello All, I am working Image gallery website. Image search page will work like google image search. On scroll it shows next results using jquery. How to display the same result if user refresh the page?

user-image
Question added by Mohammad Abrar Abrar , Team Leader , Enkindle Technologies Pvt Ltd
Date Posted: 2013/05/10
Mo'ath Al Mallahi
by Mo'ath Al Mallahi , Senior PHP Developer , iHorizons

The page viewing the result will be the same, same query will be used to view images on refresh, the idea is when user scroll the page down, you have to load the content for him by jquery / javascript, in jquery here is a function $(window).scroll(function(){ if ($(window).scrollTop() == $(document).height() - $(window).height()){ //load the data for him ;) } }); });

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.