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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:25:55+00:00 2026-05-16T05:25:55+00:00

Long time reader, first time poster. Working on a web site at http://www.howardpitch.com/ ,

  • 0

Long time reader, first time poster.

Working on a web site at http://www.howardpitch.com/, and I’m having a really frustrating time with the quiz on the front page. You select one of four answers and click the “Check My Answer” button. This will tell you if you were right or wrong and present you with a button for the next question. You can play this all day long in Firefox, Chrome, etc. but in Internet Explorer it keeps looping over the same question after you answer the first one.

jQuery’s live method is used with the click event to handle getting the next question and returning it to the front page via an AJAX call as the “Next Question” button doesn’t exist when the DOM is first loaded.

Any guidance/improvements to my code is greatly appreciated. Constructive and relevant criticism is how we learn.

This is what I have on the jQuery side of things.

$('.btnCheckAnswer').live('click', function(e){
    $.ajax({
        url:'/includes/quiz-check.php',
        type:'POST',
        data:$('#frm_quiz').serialize(),
        success:function(data){
            $('#game').replaceWith(data);
        }
    });
    e.preventDefault();
    return false;
});


$('.nextQuestion').live('click', function(e){
    $.ajax({
        type:'GET',
        url:'/includes/quiz.php',
        success:function(data){
            $('#game_response').replaceWith(data);
        }
    });
    return false;
});

Thanks very kindly in an advance.

  • 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-16T05:25:56+00:00Added an answer on May 16, 2026 at 5:25 am

    It could be a caching issue. Try setting the cache option to false, and/or using a cache breaker (which is a random number, or timestamp, passed along with the URL):

    $('.nextQuestion').live('click', function(e){
        $.ajax({
            type:'GET',
            cache: false,
            url:'/includes/quiz.php?' + Math.round(new Date().getTime() / 1000),
            success:function(data){
                $('#game_response').replaceWith(data);
            }
        });
        return false;
    });
    

    You could also try using a POST request instead.

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

Sidebar

Related Questions

Long term lurker, first time poster here. I have written a class to model
(Sorry for long post) Ok guys, so I'm having some issues with something I'm
Long post.. sorry I've been reading up on this and tried back and forth
I want to know how long it takes a particular page to render, where
Sorry about this long block of code, but I think it makes sense to
I am hitting a lot of different sites to get a list of information
I have an asp.net view/page (dynamic) that is built up of nested Html.RenderPartials. The
I've been writing tests for a while now and I'm starting to get the
In one webpage, I have a big image to load and other contents. Sometimes
Before any one suggests HTML, I explain later why thats not an option here.

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.