Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

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 ajoutée par Mohammad Abrar Abrar , Team Leader , Enkindle Technologies Pvt Ltd
Date de publication: 2013/05/10
Mo'ath Al Mallahi
par 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