|
dynamic table with nex and prev buttons
Hi there!
I want to start by say that I just started to learn javascript, soo my knowleges is just basics...
What I need to do is a dynamic table. 2 cols and max 10 rows. Is there more data then the next button must active to see the next 10 rows and soo on.
The data that is going to display is in a database, this part is finish. I can also get the data printed with document.write in a loop like this:
<script type="text/javascript">
var employee, e, col;
col = external.SokAnstallda(0);
e = new Enumerator(col.Items);
for (;!e.atEnd();e.moveNext())
{
employee = e.item();
document.write(employee.fornamn + " " + employee.efternamn);
}
</script>
Soo I need this code to bee implemented with in the table. I will upload a pic that shows the layout. Hope someone can help me!!!!
My best reguards:
Felipe Gomez Morales
|