ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل Mohammad Abrar Abrar , Team Leader , Enkindle Technologies Pvt Ltd
تاريخ النشر: 2013/05/10
Mo'ath Al Mallahi
من قبل 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 ;) } }); });

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟