Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 611507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:47:29+00:00 2026-05-13T17:47:29+00:00

I am using the Jquery pagination plugin http://plugins.jquery.com/project/pagination to paginate the rows in a

  • 0

I am using the Jquery pagination plugin

http://plugins.jquery.com/project/pagination

to paginate the rows in a table.

I also use a little tip provided in another SO question here to correct a bug in the original example…

The code is working fine in FireFox and Chrome but not in IE6+… Here is my javascript to initialize and run the pagination…

function pageselectCallback(page_index, jq){
              var items_per_page = pagination_options.items_per_page;
              var offset = page_index * items_per_page;
              var new_content = $('#hiddenresult tr.result').slice(offset, offset + items_per_page).clone();



               $('#Searchresult').empty().append(new_content);


              return false;
            }

            var pagination_options = {
                  num_edge_entries: 2,
                  num_display_entries: 8,
                  callback: pageselectCallback,
                  items_per_page:3
                }



            /**
             * Callback function for the AJAX content loader.
             */
            function initPagination() {
                var num_entries = $('#hiddenresult tr.result').length;
                // Create pagination element

                 $("#Pagination").pagination(num_entries, pagination_options);
            }

            // Load HTML snippet with AJAX and insert it into the Hiddenresult element
            // When the HTML has loaded, call initPagination to paginate the elements
            $(document).ready(function(){
                initPagination();
            });

The Table structure is

// Table to display the paginated data
<table>
  <tr>
   <td>
      <div id="Pagination" class="pagination">
      </div>
        <br style="clear:both;" />
      <div id="Searchresult" style="height:auto;">
      This content will be replaced when pagination inits.
     </div>
   </td>
 </tr>
</table>


// Table containing the rows that are to be paginated
<table id="hiddenresult" style="display:none;">
  <tr>
    <td>   

 <table>
      <tr> // 1st row
         <td>
             <table>
                <tr>
                   <td>
                   </td>
                </tr>
                <tr>
                   <td>
                   </td>
                </tr>
             </table>

             <table>
                 <thead>
                    <tr>
                    </tr> etc...
                 </thead>
                 <tbody>
                     <tr>

                     </tr> etc etc...
                 </tbody>
             </table>
         </td>
      </tr> // end 1st row

     <tr> //2nd row
         <td>
             <table>
                <tr>
                   <td>
                   </td>
                </tr>
                <tr>
                   <td>
                   </td>
                </tr>
             </table>

             <table>
                 <thead>
                    <tr>
                    </tr> etc...
                 </thead>
                 <tbody>
                     <tr>

                     </tr> etc etc...
                 </tbody>
             </table>
         </td>
      </tr> //end 2nd row

    etc etc etc....
    </table>

 </td>
</tr>
</table> // id = "hiddenresult"

The way i see it the plugin get’s initialized in IE but the bug is in displaying the paginated rows… But cannot figure out where it is or how to correct it…
Thanks a lot for your suggestions….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:47:30+00:00Added an answer on May 13, 2026 at 5:47 pm

    fixed it…!!!

    This is the code….!!

     function pageselectCallback(page_index, jq){
                    var items_per_page = pagination_options.items_per_page;
                    var offset = page_index * items_per_page;
                    var new_content = $('#hiddenresult tr.result').slice(offset, offset + items_per_page).clone();
    
    
                   if(navigator.appName == "Microsoft Internet Explorer"){
                       // This is to fix an IE bug that won't properly append the cloned html to the 
                       // Searchresult div. So we first append the cloned html to a dummy div and
                       // then use javascript innerhtml property to copy to the actual div.
                       $('#justDiv').empty().append(new_content);
    
                        var content = document.getElementById("justDiv").innerHTML;
    
                        document.getElementById("Searchresult").innerHTML = content;
                  }
                    else{
                        $('#Searchresult').empty().append(new_content);
                    }
    
    
                    return false;
                }
    

    Cheers everybody…!!!

    I know this is not very neat… and i am still open for suggestions… So.. all are welcome… thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 290k
  • Answers 290k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You need to do it like this: String c =… May 13, 2026 at 5:47 pm
  • Editorial Team
    Editorial Team added an answer Have you switched it off accidentally? In the options dialog… May 13, 2026 at 5:47 pm
  • Editorial Team
    Editorial Team added an answer try this: string GetString<T>(List<T> list) where T : IEntityCore {...}… May 13, 2026 at 5:47 pm

Related Questions

I am using a bespoke Jquery/PHP gallery script which pulls images from a Flickr
I am currently trying to make the pagination plugin work with my site. When
I just took a look at jqgrid . Has anyone tried implementing this plugin,
I am using jQuery to simulate a popup, where the user will select a
I would like to create a pagination system for comments in my website.So far,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.