title: how to ajaxify zend_pagination results (already working with partialoop) using jquery
body: <p>in the controller i have :</p>
  
  <pre><code>  $paginator = Zend_Paginator::factory($mdlPost-&gt;getPosts($this-&gt;moduleData-&gt;accordion, 'name ASC'));
     if(isset($params['cities'])) {  
            $paginator-&gt;setCurrentPageNumber(intval($params['cities']));
              }
  $paginator-&gt;setItemCountPerPage(4);
  $this-&gt;view-&gt;posts = $paginator;         
  </code></pre>
  
  <p>in the view's i have some thing like this :</p>
  
  <pre><code>if ($this-&gt;posts != null) {?&gt;
    &lt;div id="cities_accord" class="news"&gt;
     &lt;?php   echo $this-&gt;partialLoop('partials/post-min.phtml', $this-&gt;posts); ?&gt;
    &lt;/div&gt;   
    &lt;?php   echo $this-&gt;paginationControl($this-&gt;posts,
                                  'Sliding',
                                  'public/pagination_cont.phtml'); 
  }
  </code></pre>
  
  <p>the partial/post-min.phtml</p>
  
  <pre><code>&lt;?php 
  $color = array(1=&gt;'spring',2=&gt;'summer',3=&gt;'autumn',4=&gt;'winter');
  ?&gt;
  
  &lt;div id='&lt;?php echo $color[$this-&gt;partialCounter] ?&gt;' class="accordion_post"&gt;
  &lt;?php
  $link = Digitalus_Uri::get(false, false, array('openCity' =&gt;      
    $this-&gt;id));//$color[$this-&gt;partialCounter]));
  ?&gt;
  
  &lt;h1 class="accordion_post_title"&gt;&lt;?php echo $this-&gt;title ?&gt;&lt;/h1&gt;
  
  &lt;p&gt;&lt;?php echo $this-&gt;teaser ?&gt; &lt;a href="&lt;?php echo $link;?&gt;"&gt;&lt;i&gt;read more&lt;/i&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>the pagination_cont.phtml taken from this link zend ( <a href="http://framework.zend.com/manual/en/zend.paginator.usage.html" rel="nofollow">http://framework.zend.com/manual/en/zend.paginator.usage.html</a> )
  will show links that will pass params to the controller to fetch the corresponding <strong>whole</strong> page which is working alright for now </p>
  
  <p>but i want to change this so that i will be able ajaxify the returned ( i.e. only a single paginated value rather than reloading the whole page ) results how can i do that using jquery and what should i change .. </p>
  
  <p>** EDIT: it would be nice to have a fail-save ,if possible, for browsers(users) that disabled javascript to see the same thing by reloading the page (i.e. keeping the current status for if(javascript_not_enabled ))**</p>