EDIT: This question was initially too general, I think. So I really need a very good guide on how to implement the Load More function on Safari for the iPhone , like the Twitter site (mobile.twitter.com) does. Just the wordpress plugin won't help. But if the plugin is well explained, as if it were wptouch, then at home (which also has this feature).
I know that it doesn’t really matter if it is displayed on a mobile device, but I emphasize that if such a function is well explained, then I will need to know how to configure it for me.
I use the javascript function to load records coming from the database dynamically, so that the content opens on the same page (for example, using twitter (tweets) and facebook (news feed)).
Php / html version (which opens the page in a new tab)
echo '<a href="http://'. $_SERVER['HTTP_HOST'] .'/'.$domain_page.'?form='.$form_id.'&page='.($page+1).'">Load more entries› </a>';
Javascript / ajax version:
<div id="call_hv<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="ajax-load-more">
<img id="spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>" class="spin" src="<?php bloginfo('template_directory'); ?>/images/main-ajax-loader.gif" style="display:none" alt="" />
<a class="ajax" href="javascript:$ajax_hv('#spinner<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeIn(200);
$ajax_hv('#ajaxentries_hv<?php echo md5($_SERVER['REQUEST_URI']); ?>').load('form='<? echo $form_id; ?>&page=<?php echo $page+1;?>', {},
function(){ $ajax_hv('#call_hv<?php echo md5($_SERVER['REQUEST_URI']); ?>').fadeOut();})">Load more entries...
</a>
source
share