php - Fallback with scrolling loaders -



php - Fallback with scrolling loaders -

fantastic community have here, onto first question.

i'm creating blog scratch, , know can load content on scrolling events using jquery , php (to save loading @ once). of don't know how or is, can find tutorial link here:

http://www.9lessons.info/2009/07/load-data-while-scroll-with-jquery-php.html

however, method relies on javascript requests. in name of practice , 1-2% of people still load yahoo homepage java-script disabled. result in user loading few posts, or loading entire set of posts. i'd find best progressive workaround allow me to:

if javascript enabled (load content using above jq/php scrolling method normal) if javascript disabled (grayskull forbid!?) fall more html/css reliant method automatically, without me having design separately.

quite complex question, hope makes sense. if i'm thinking along right lines, html/css fallback might break content separate pages , page buttons, i'm unsure how 2 might translate together, instance, design jq/php scrolling method seems within 1 loading page, html alternative seems on separated pages.

i utilize advice.

to give idea: pseudo code:

<noscript> <!-- server-side language generated pagination --> <a href="1.html" class="active">1</a> <a href="2.html">2</a> <a href="3.html">3</a> </noscript> <content> <article> <article> <article> <article> <!-- js pushes new content on scroll ajax, otherwise...--> </content> <noscript> <a href="1.html" class="active">1</a> <a href="2.html">2</a> <a href="3.html">3</a> </noscript>

php jquery html load progressive-enhancement

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -