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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:13:48+00:00 2026-05-11T14:13:48+00:00

I really hope someone can help with this problem. I have an ajax pagination

  • 0

I really hope someone can help with this problem. I have an ajax pagination script that works great on the first page but the click events will not work on any other pages from the paging.

This is how I have it setup:

jQuery script

<script type='text/javascript'> // prepare when the DOM is ready  $().ready(function() { //popup div $('.wsbutton_pop').click(function(e){  //getting height and width of the message box        var height = $('#popuup_div').height();       var width = $('#popuup_div').width();       //calculating offset for displaying popup message       leftVal=e.pageX-(width/2)+'px';       topVal=e.pageY-(height/2)+'px';       //show the popup message and hide with fading effect       $('#popuup_div').css({left:leftVal,top:topVal}).show();       $('#popuup_div').html('<img src='images/ajaximg.gif' border='0'>');         $.ajax({            type: 'get',            url: $(this).attr('href'),            success: function(r){             $('#popuup_div').html('')               $('#popuup_div').prepend(r);              }      });    });  //close div on mouse click  $('.popup_msg').click(function(e){        $('#popuup_div').fadeOut();   });   });  </script> 

That should popup a div with content from another page.

Now my link: <a href='http://mysite.com/file.php?content=1' class='wsbutton_pop'>Load content</a>

That works great on the initial page but the problem now is when I click to visit page 2 which has the exact same link, the link doesn’t work anymore.

As a note, my pages should load in a div with id=’paging’. The ajax paging itself works great, its just that any jquery click event on the resulting pages does not work. I think the problem may be that I need to rebind the script but I do not know how to accomplish that.

Thanks for any help on this.

  • 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. 2026-05-11T14:13:48+00:00Added an answer on May 11, 2026 at 2:13 pm

    I would guess you are overwriting the link with the pagination so the click event is no longer bound. If you are using jquery 1.3 you can use the live events to fix this.

    $('.wsbutton_pop').live('click', function(e) { ... 

    Or if you’re using an earlier version of jQuery you can just reattach the event handler when you get the new page data back.

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

Sidebar

Related Questions

I really hope someone can help on this because I'm learning cocoa and have
I'm driving myself nuts with this particular problem, i really hope someone can help!
This really, really urks me, so I hope that someone can give me a
Really hope someone can help me as I'm a bit stuck :S I have
I really hope someone who is a CC.NET expert can help with this, because
I have been trying to figure this out for days. Hope someone can help.
I really hope someone can help me with this. I'm struggling with it for
I'm almost losing it, i really hope someone can help me out! I'm using
I have a very weird problem.. I really do hope someone has an answer
hope to get some help here because this is something that really makes me

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.