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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:01:11+00:00 2026-06-16T00:01:11+00:00

I have created a php page that displays some records from my db. I

  • 0

I have created a php page that displays some records from my db.
I also have a button that executes some ajax to update the records, and then show the new / updated dataset on the same page.
I’m having problems with my ajax call and I’d like some tips on how to troubleshoot.
I’ve noticed that since my header has been explicitly set to be json content, i can’t just do things like var_dump from the controller to see the data BEFORE it is sent to the view.
Unfortunately, for some reason, my console.log calls in the ajax method are not working for me either. i don’t know why.

But I’m wondering if someone can tell me other ways to debug my code. I know I can change the json data type to html / text and then remove all code in my controller that sets headers / calls json_encode… but just in case there’s a better way, I thought I’d ask.

  • 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-16T00:01:12+00:00Added an answer on June 16, 2026 at 12:01 am

    You can use the Developer console in Chrome, click on the Network tab, and then at the bottom you can limit the type to “XHR” then you can try to make the AJAX request, and you should see everything there is to see about it, including the response, etc.

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

Sidebar

Related Questions

I'm using PHP and MySQL. I have a page that displays meetings created by
I have created a html page in php and upon submission i validates that
I have a html page that calls a php object to get some data
I'd like to have a form that executes some php code without having to
I have created a php/mysql based chat page.It is like gmail chat.once i click
I have page named page--news.tpl.php, which i created for my news page. But after
I have a mysql database and some php that allows you to create an
Here is the deal. I have created some HTML/Javacript dashboards that will be displayed
Good evening all! i have an Ajax call that loads 5 'echo's' from a
I have a php page with 3 different forms. I create 3 separate print

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.