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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:52:53+00:00 2026-06-07T02:52:53+00:00

I have a button on my site which, when clicked on, should load html

  • 0

I have a button on my site which, when clicked on, should load html inside a div container.

I’m using the following code for the button:

<div id="nextnr1"><a href = "#">Next&gt;&gt;</a></div>

The following code to execute the loading when someone clicks on the div:

<script type="text/javascript">
    $(document).ready(function() {
        $("#nextnr1").mousedown(function() {
            $("#Container").load("wrappers.php?currenttab=1&shift=1");
        });
    });​
</script>

This is the code for the container where the HTML is loaded into:

<div id="Container"></div>

The problem is that all of the above code is working most of the time. Only once in a while the function .load is not doing his job. This is for similar circumstance because it is about the same page.

I checked that when there is a click the function was called so: $(document).ready and $("#nextnr1").mousedown(function() {..} are doing their job. Only .load is NOT doing its job because I checked that there was no HTTP request sent to the server.

If anyone can help me out with this problem I would be very very thankful.

UPDATE 1

I tried the message box (see code below) and it shows that when the load was not executed it also didn’t show the message box Load was performed. I also saw that after 2/3 minutes suddenly the message box showed up and it reloaded! However it does work but sometimes there is a huge delay.

$(document).ready(function() {
   $("#renextnr2").click(function() {
      $("#Container").load("wrappers.php?currenttab=2&shift=1", function() {
           alert("Load was performed.");
      });
   });
});
  • 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-07T02:52:56+00:00Added an answer on June 7, 2026 at 2:52 am

    I added a randon number at the end of the URL which solved the problem.

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

Sidebar

Related Questions

I have a delete button on my web site which I want to add
I have google analytics on my site. One page has a button which when
I have the following script, which when you click the image within the div,
I have implemented the Facebook like button on my site by using the asynchronous
I have a FB Like button on my site, but when it gets clicked,
In my ASP.Net Web Site I have a button.When I click the button and
I have facebook connect button on a page of my site and I want
I have button, which fires an event, that deletes a record from the database.
I have a button that when clicked will run a stored procedure on a
I have a Facebook login button on my site for the purpose of getting

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.