Welcome Guest, Not a member yet? Register   Sign In
ajax pagination + protoype?
#1

[eluser]MMCCQQ[/eluser]
trying build a ajax pagination with Prototype for my Gallery!

i got this! ,,work it! but i need to know how show Prev,Next and 1,2,3,4...Page Link

Controller

Code:
function Gethumb(){
// URL type: http://importzona.com/Gethumb/num of page
        $this->empezar = $this->uri->segment(3);
        $this->db->limit(1,$this->empezar);
        $this->db->order_by('id','desc');
        $Resultado = $this->db->get('album_photo');
        echo $this->uri->segment(3);
         foreach ($Resultado->result_array() as $row)
       {
          echo "<div id='thumb_wrap'>";
          echo "<div id='thumb'><img src='http://beta.importzona.com/".$row['thumb']."'></div>";
          echo "</div>";
          
       }


        
        
        
        
        
    }

View
Quote:




function get(id){
if($("sidebar")){

new Ajax.Request(
'Gethumb/'+id,

{


method:"post",
onComplete: procesaRespuesta


}
);

};
}

function procesaRespuesta( resp ){


$("sidebar")[removed] = resp.responseText;
}

&lt;a href="#" onclick="get('2');"&gt;Push Me!</a>
<div id="sidebar">
</div>


Messages In This Thread
ajax pagination + protoype? - by El Forum - 02-10-2008, 02:43 PM
ajax pagination + protoype? - by El Forum - 02-11-2008, 10:11 AM
ajax pagination + protoype? - by El Forum - 02-11-2008, 03:49 PM
ajax pagination + protoype? - by El Forum - 02-11-2008, 08:25 PM
ajax pagination + protoype? - by El Forum - 02-11-2008, 08:27 PM
ajax pagination + protoype? - by El Forum - 02-11-2008, 09:42 PM
ajax pagination + protoype? - by El Forum - 02-11-2008, 09:50 PM
ajax pagination + protoype? - by El Forum - 06-17-2008, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB