rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - RVO

Pages: 1
1
Good Morning. I've been doing some tests and I think it's possible to do pagination with? Offset = 10 & limit = 10 for example. But I can not make a script to do it automatically. The most I got was this:

<script language="JavaScript" type="text/javascript">
<!--
var vCont = 0;
function conta(){
vCont = vCont + 10;
document.getElementById('contador').value = vCont;
}
//-->
<!--
var vCont = 0;
function deconta(){
vCont = vCont - 10;
document.getElementById('contador').value = vCont;
}
//-->
</script>

</head>
<body>
<div class="pager" align="center">

<form >

   <input type="button" value="prev" onclick="deconta();" />
      <input type="text" value="" id="contador" name="isso"  size="5" />
   <input type="button" value="next" onclick="conta();" />
 
           <a class="command" href="#" onclick="this.href='?offset='+document.getElementById('contador').value+'&limit=10'" > Ir</a>
        </form >

</div>


But it is very handmade. Can you help me do what it should be? Another problem I have is that using this system does not work when I want to organize by date added files. They are always organized by name. Thank you in advance for the help.

Pages: 1