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

  • SEARCH
  • Home
  • 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 7906429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:58:05+00:00 2026-06-03T10:58:05+00:00

I am close to losing my mind. I am working on a project for

  • 0

I am close to losing my mind. I am working on a project for a big company, over their framework. They rely heavily on the jQuery.datatables plugin which is not a bad thing, but the documentation seems to me to be very poor and confusing and the source code very hard to understand.

Short Version: I need to know how to hook up with the page changed event, so i can execute some code when it happens.

Long Version: I have a json array of data to put in the table, the items don’t come with a unique identifier; so, before sending it to the dataTable i add a column id that is filled with the item’s index in the array and create a column for it. After i invoke fnUpdate, i hide the index column and add a click event for each row, using the value on that column to know which json object corresponds to that row. It’s not pretty, but it works, right until the time i change pages; at that time, the is still hidden, but the s show up again. I need to find how to hook in the page change event so i can hide them again, or i need a more elegant way to do the same trickery.

Thank you for your time

  • 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-06-03T10:58:13+00:00Added an answer on June 3, 2026 at 10:58 am

    You could use fnDrawCallback or fnInfoCallback to detect changes. When next is clicked both of them are fired.

    But beware, page changes are not the only source that can fire those callbacks.

    Or you could try something like this:

    $('.dataTables_length select').live('change', function(){
       alert(this.value);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really close to finishing up on a project that I've been working
How to close jQuery thickbox from server side - I want to cause the
In pydev package explorer (Eclipse Indigo) when I right click and select close project
I want to close the dialog box when you click outside of the dialog,
$(a.close).click(function() { var id = $(this).attr(id); alert(id); $(this).parents(div.venue:first).fadeOut(Fast); return false; }); Any ideas why
Is it necessary to close the connection of a tcplistener or tcpclient after every
I'm dangerously close to launching a pretty heavy web app and I've got almost
After I close my application fbclient.dll remains in memory for about 3 seconds. So
I always find myself close to useless without my laptop. It has all the
I have close to 30 wordpress installs that will grow very rapidly to double

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.