Welcome Guest, Not a member yet? Register   Sign In
Pagination links jumping around
#1

[eluser]wizzer[/eluser]
Hi -

The pagination class works great, but the links keep jumping from left to right depending on what page i click. I have looked in the pagination class but cant see any way to control them.

Does anyone have any ideas or experience of this?

thanks
#2

[eluser]Callista[/eluser]
I'm using pagination as well, but i don't have that problem.
what kind of things do you config now with your code and how do you show the links in your view?
#3

[eluser]Nextneed[/eluser]
Hi,
check also that $config['uri_segment'] of pagination config is setted up consistently with the url you generate...
#4

[eluser]wizzer[/eluser]
Thanks for the replies,

Here i smy view code
Code:
<table width="650" class="showData" cellpadding="2">
          <tr style="background-color:#999999"><th>UserName</th><th>Role</th><th>Active</th><th>Edit</a></th><th>Delete</th><th>Access Level</th></tr>
            &lt;?
             foreach($userList as $entry): ?&gt;
          <tr>
          <td width="40%">&lt;?=$entry['Email'];?&gt;</td>
          <td style="text-align:center">&lt;?=$entry['Roles'];?&gt;</td>
          <td style="text-align:center">&lt;?=$entry['Active'];?&gt;</td>
          <td><a href="[removed]editDetails('&lt;?=$entry['UserID'];?&gt;','&lt;?=$entry['Email'];?&gt;','&lt;?=$entry['RegDate'];?&gt;','&lt;?=$entry['Active'];?&gt;','&lt;?=$entry['Roles'];?&gt;');"><img width='16' height='16' border='0' style="margin-left:auto;margin-right:auto;display:block">config->item('base_url');?&gt;images/edit.gif'/></a></td>
          <td><a href="[removed]deleteDetails('&lt;?=$entry['UserID'];?&gt;');"><img style="margin-left:auto;margin-right:auto;display:block" width='16' height='16' border='0'>config->item('base_url');?&gt;images/delete.gif'/></a></td>
          <td><a href="[removed]accessLevel('&lt;?=$entry['UserID'];?&gt;');"><img style="margin-left:auto;margin-right:auto;display:block" width='16' height='18' border='0'>config->item('base_url');?&gt;images/level.gif'/></a></td>
                 </tr>
        &lt;?php endforeach;  ?&gt;
                <tr><td>&lt;?echo $this->pagination->create_links();?&gt;</td></tr>
                </table>

I have checked that $config['uri_segment'] = 3 which is correct for my urls
#5

[eluser]Callista[/eluser]
The CSS could be better
but i would at least say that your <td> for the pagination has a colspan="6"...
i don't know if this has anything to do specific with you problem but it will create a cleaner better table.

plus you are working with 40% which most of the times makes that the table will be a different with depending on the space that you have. I personally would give it a standard px width. So the table always looks the same.

these two things could be causing a different appearance of your table and your pagination depending on what page you click. But i'm not sure.
#6

[eluser]wizzer[/eluser]
thanks for your comments I will give it a try
#7

[eluser]wizzer[/eluser]
Still no luck with this. The only ting that is different from examples i that I am generating the table myself and not generating it automatically.

I'm fresh out of ideas :-(
#8

[eluser]Callista[/eluser]
[quote author="wizzer" date="1250621212"]Still no luck with this. The only ting that is different from examples i that I am generating the table myself and not generating it automatically.

I'm fresh out of ideas :-([/quote]

i'm generating everything with div's so you should have to use a automatically generated table.
can you post a screens of what's happening?
and what does your controller look like for the pagination?




Theme © iAndrew 2016 - Forum software by © MyBB