Note that there are some explanatory texts on larger screens.

plurals
  1. POphp page renders properly but "view source" not showing correct HTML
    primarykey
    data
    text
    <p>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. </p> <p>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. </p> <p>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: </p> <pre><code> &lt;tr&gt;&lt;td&gt;10.14.193.0/27&lt;/td&gt;&lt;td&gt;Vancouver Island&lt;/td&gt;&lt;td class='deadclient'&gt;2012-06-13 12:12:12&lt;/td&gt;&lt;/tr&gt; </code></pre> <p>And here's what the view source is showing: </p> <pre><code> &lt;tr&gt; &lt;td&gt;10.14.193.0/27&lt;/td&gt; &lt;td&gt;Vancouver Island&lt;/td&gt; &lt;td&gt;2012-06-13 12:12:12&lt;/td&gt; &lt;/tr&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload