Plugin

Developer
Supported

AJAX Pagination

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Laisvunas

     

You must be logged in to post.

Sliding Boxes not initialising on pagination

Support Request

netsmart
netsmart

I think it has something to do with the fact I am using sliding boxes as per the link below. It’s not a timthumb issue because I commented that out and just loaded raw image and same issue occurs, so it could be that the ajax load is not initialising the sliding boxes script

http://buildinternet.com/2009/03/sliding-boxes-and-captions-with-jquery/

{exp:ajax_pagination:wrapper 
ajax_container
="ajax_container" 
embed_template_url="{path='our-work/work_ajax_pagination'}" 
process_indicator="process_indicator" 
process_indicator_scroll="yes" 
parse="inward"
}

{ajax_pagination_container_top}
<div id="ajax_container">
{/ajax_pagination_container_top}

<div class="process_indicator">
<
img src="{site_url}img/ajax-loader.gif" />
</
div>

{exp:channel:entries channel="our_work" limit="4" disable="member_data|trackbacks" dynamic="off" paginate="bottom"}
<!--work item-->
<
div class="myMossy {switch='one|myMossyMiddle|three'}"
  <
div class="mosaic-block circle">
   <
a href="{page_url}" class="mosaic-overlay">&nbsp;</a>
   <
div class="mosaic-backdrop">
   
{work_gallery limit="1"}
    
<img src="{site_url}timthumb/timthumb.php?src={image_file}&h=190&w=300"/>
   
{/work_gallery} 
   
</div>
  </
div>
  <
strong>{title}</strong><br />
  <
em>Work Type{categories}{category_name}{/categories}</em>
</
div>  
<!--...-->

{paginate}
<div class="span-24 last">
{exp:ajax_pagination:links}
<p>{pagination_links}</p>
{/exp:ajax_pagination:links}
</div>
{/paginate}


{
/exp:channel:entries}

{ajax_pagination_container_bottom}
</div>
{/ajax_pagination_container_bottom}

{
/exp:ajax_pagination:wrapper} 
Laisvunas
# 1
Developer
Laisvunas

Hi,

It seems that boxes-and-captions-with-jquery script runs on page ready or on page load. It should also run when ajax loads portion of the page.

It would be best that part of boxes-and-captions-with-jquery script which is being executed on page ready or on page load to place in your embed template.