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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:23:39+00:00 2026-05-21T14:23:39+00:00

I thought I was doing great with this web app I’m working on, but

  • 0

I thought I was doing great with this web app I’m working on, but alas.. I’m starting to think I designed it poorly, even though I started over like 6 times while learning the CI framework.

The application is here and my problem is as follows: when you go to, for example, december 31 2011 (by pressing the right arrow then clicking on the 31st), you get some red errors and my table headers (second part of the page) go crazy. After doing that, you should try going back to say.. april 1, you’ll see that my headers go even more crazy, looping through some stuff that I don’t know where it’s coming from. If you go to april 2nd then, you’ll see it still loops through that stuff, even though it shouldn’t.

I’m not sure how to debug this, I don’t even know where the problem lies: in my AJAX call or my PHP code.

My source code can be found here. The files involved are:

/logic/controllers/planner.php
/logic/models/planner_model.php
/logic/views/planner/days_content.php
/logic/views/planner/detail_content.php

Would anyone be so kind to look at this and help me find the problem here? I’m honestly not sure where to look for the solution to this issue. I can provide more information about how my application works if necessary.

I basically store everything in an array, and pass that to the view. When I do an AJAX call, I update the array and load the view again, after which I pass it into my page using .html().

Thanks a lot.

  • 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-21T14:23:40+00:00Added an answer on May 21, 2026 at 2:23 pm

    You can use firebug for firefox to debug ajax/javascript. When I click on a date there are multiple ajax calls. I think its happening because you have the js click handler inside dates_content.php which gets loaded every time you click right/left arrow. So your dates have multiple click handlers associated with it.

    $("#day_list li").live("click", function() {
    $(".selected").removeClass("selected");
    var day = $(this).attr('value');
    $(this).addClass('selected');
    $.ajax({
    type: "POST",
    url: "/planner/change_detail",
    data: { day: day, month: current_month, year: current_year },
    success: function(data)
    {
    $("#detail_content").html(data);
    }
    })
    });
    

    I am talking about the above code you have

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

Sidebar

Related Questions

So this is what i thought of doing but now the error i am
I thought I heard that py2exe was able to do this, but I never
I thought people would be working on little code projects together, but I don't
I thought this was asked before, but 15 minutes of searching on Google and
This may be impossible, but I thought I'd ask before I rework the whole
Hello kind computing people, Okay this is super broad, but I thought I'd give
I thought that I might be able to do this with quotations - but
I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded
I thought I had seen a bug report about this on the jQuery site,
I thought I'd offer this softball to whomever would like to hit it out

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.