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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:53:58+00:00 2026-06-05T13:53:58+00:00

I have two problems with the same php/ajax solution. The first is a weird

  • 0

I have two problems with the same php/ajax solution. The first is a weird problem. Or maybe I’m just missing something.
i have a php page that displays data from a database.
so let’s say when it loads the first time, “myavalue” = 1.

On the same page i have a refresh button that triggers an ajax function to get the latest data from the database. If I change the value in the database from 1 to 2, and then use this button, the page does display 2. however, when i do a view source on the page, it shows the value 1 instead of 2.
Why is this? i’ve tried it both in IE 9 and also in fire fox.

The second issue may be related… the problem is with the same page that I mentioned above. When the refresh button is clicked, i’m actually generating html in my controller and then having my view display it. what i’m noticing is that in the view source, the html is missing a class name that i assign to my table cells. However, in my console, i can see that the html that the controller is generating does infact include the proper class names.
Here’s what the console is showing:

 <tr><td>10.14.193.0/27</td><td>Vancouver Island</td><td class='deadclient'>2012-06-13 12:12:12</td></tr>

And here’s what the view source is showing:

    <tr>
       <td>10.14.193.0/27</td>
       <td>Vancouver Island</td>
       <td>2012-06-13 12:12:12</td>
    </tr>
  • 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-05T13:54:01+00:00Added an answer on June 5, 2026 at 1:54 pm

    “View Source” is better worded as “View Original Source” (and I believe it is in some browsers). It is the source of the page before JavaScript had any say on the matter.

    To view real-time source, use whatever Developer Tools your browser has. IE has the F12 Tools, Chrome has the Inspector, and Firefox recently added the Web Developer.

    The point is that there is a difference between “View Source” and what is actually on the page. It’s like trying to look at the source of a stream by looking at where it meets the ocean.

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

Sidebar

Related Questions

I have the following code in a page (index.php), it's composed by just two
I have two Ajax functions that are on the same div, the first one
I have a problem with two Textviews on the same height in a RelativeLayout
Elementwise multiplication of two vectors is no problem if they both have the same
Hy, I have a problem in a nested form. Actually, I have two problems,
I have two cmake-related problems: first, I can't make it to find the includes
I just started using gApps scripts and I have run into two problems with
I'm new to javascript, my problem is effectively: I have a php page that
The problem I have is I have two seperate AJAX requests using jQuery, One
Alright, this is a weird problem I'm having. I have two pages, which are

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.