Make two page navigations on top ang bottom of a list

Posted by sees on Stack Overflow See other posts from Stack Overflow or by sees
Published on 2012-06-03T04:34:34Z Indexed on 2012/06/03 4:40 UTC
Read the original article Hit count: 389

Filed under:
|
|

I'm creating a simple PHP page that reads CSV file content and display some selected columns to users in pages Currently, I'm reading each line and display it immediately. Because of this method, I only know total of lines after finishing reading entire file( searching in file also). What I want is displaying two page navigations on the top and bottom of the list. Like this:

Page 1|2|3|4


Field 1|Field 2|Field 3|Field 4|Field 5....|Field n

Row1

Row2

....

Rown


Page 1|2|3|4

After displaying all rows, bottom page nav, I used jquery function: insertBefore to insert another page navi to the top.

Problems are:

1) Top page nav not displayed in IE8 but displayed ater pressing F5(worked in FF, Chrome).

2) Using insertBefore function, the top page nav is suddenly poppep up afer displaying the bottom one. It doesn't look naturally

Any suggestion?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html