javascript - Dynamic Content Loading (Infinite Scroll) -
so, building website has photos on (similar grid weheartit) , main idea update photos daily (i put new photos on daily bases). @ first wanted make pagination realized loading content dynamically better idea. so, wanted load content in similar way weheartit (when user reaches bottom of page, new content loaded , on infinity)... new web design have knowledge of html , css , base mid knowledge on javascript. so, wondered if of me on right road of achieving ideas. need learn make possible? doable without php, need ajax , on... guys.
based on how stated question, seems little vague , i'm not quite sure on asking for, i'll answer question best of ability.
first of all, not see why want load content 'dynamically' javascript. javascript client side language, when server gets request load webpage, html/css sent client side. javascript hide of html, data hidden still exists on client side. example, can have this:
function loadpage(){ document.getelementbyid("mydiv").style.display= "block"; } then add button @ end of page execute function. better have loaded @ first.
php server side language, code executed on server. when request page, not html sent computer... it's when trigger action on page, server kicks in , fetches new html database on server.
ajax (asynchronous javascript , xml) way of communicating server using javascript, allows webpages render information databases without refreshing page.
the heart site generates data dynamically database. when bottom of page, ajax request fires off communicating server loading more pictures see.
if want dynamic system pictures keep loading, you'll need learn php/ajax/mysql(database)
Comments
Post a Comment