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 8302473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:17:58+00:00 2026-06-08T17:17:58+00:00

I usually would include a lot of code with my questions but I’m not

  • 0

I usually would include a lot of code with my questions but I’m not sure exactly what I should include with this!

I have a list of users in a table, I am showing only 10 users at a time using the tablesorter pager (pagination) plugin http://tablesorter.com/docs/example-pager.html

In each row there is a delete button for each user. When you click the delete button a dialog box pops up “do you want to delete this user blah blah…” http://jqueryui.com/demos/dialog/

The problem I am having is that when I go to page 2 of the table pagination (or any other page that is not the first) the jQuery dialog box does not “fire” and you are able to delete the user without the dialog warning.

Does anyone have experience of using these 2 plugins in tandem or is there some sort of function I need to call to “refresh” the UI plugin when I move to a new page via the pagination.

To summarise: the tablesorter/pager works as expected, the jQuery UI dialog box works as expected but the jQuery UI dialog box does not load on when on a page that is not 1 on the pager.

Hope that makes sense and if there is any additional info/code that anyone needs to help me figure this one out please ask and I will add.

EDIT

This is the script to call the dialog.

<script type="text/javascript">
    $('#dialog-confirm').hide();
        $('.delete-recip').bind('click',function(e){
            e.preventDefault();
            var targetUrl = $(this).attr("href");
        $( "#dialog-confirm" ).dialog({
                resizable: false,
                height:140,
                modal: true,
                buttons: {
                    "&{'recipientlist.DeleteUserButton'}": function() {
                        $( this ).dialog( "close" );
                        window.location.href = targetUrl;
                    },
                    &{'recipientlist.DeleteUserCancel'}: function() {
                        $( this ).dialog( "close" );
                    }
                }
            });
    });

 });
</script>
  • 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-08T17:18:00+00:00Added an answer on June 8, 2026 at 5:18 pm

    Need to delegate the function to a static element….paginated elements are created after the DOM, so they’ll have no events bound to them.

    Delegating using jQuery 1.7’s .on() ->

     $(document).on('click', '.delete-recip', function(){ 
       // copy function code here
     }); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When performing many inserts into a database I would usually have code like this:
For this code example below, usually I would use [self fall]; instead of the
I would usually search for this error. But in VS C++ Express, this error
How would I usually represent this business logic in a graph? A is true
I have a URL that would be like so: http://mysite.com/index.php?somename=somevalue I usually check that
I have a question: Many repositories do not include libraries that have debug symbols
I know of the include() code, but I want the iframes to change. In
Why would anyone want to not use a code behind file so that server
usually the practice is not to include binaries in source control repositories, i am
I did not try before to include .MDF file in App-Data, I usually connect

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.