gettting .get() in jquery to work
<p>I am a bit new to jquery and am getting used to its functions. I have been trying to practice using the .get() function but its not working. Here is my code:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Testing Site&lt;/title&gt;
&lt;script type="text/javascript" src="../js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
        $(function() {
            $("#id").click(function(){  
                $('#hello').css('background-color', 'blue');
                $.get("test.php", function(data){
                    $('body')
                        .append( "Name: " + data.name )
                        .append( "Time: " + data.time ); 

                    $('body').css('background-color', 'red');
                }, "json");
            });
        });
&lt;/script&gt;   
&lt;/head&gt;
&lt;body&gt;
&lt;span id="hello"&gt;Hello World!&lt;/span&gt;
&lt;input type="button" id="id" value="Click Here"&gt;&lt;/input&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I basically modified the .get() example on the jquery api site. But when I click the button nothing happens! (There must be something wrong because the background color isn't changing either...) I have the correct path names and I copyed the correct php file:</p>

<pre><code>&lt;?php echo json_encode(array("name"=&gt;"John","time"=&gt;"2pm")); 
?&gt;
</code></pre>

<p>I also tried implementing an example on <a href="http://www.chazzuka.com/ajaxify-your-web-pages-using-jquery-88/" rel="nofollow">http://www.chazzuka.com/ajaxify-your-web-pages-using-jquery-88/</a> which used the .get() which didn't work. On firefox nothing happened and on Google Chrome it only worked part way...
I'm not sure if anyone cares to try to implement that code, but that code made me wonder about this .get() function: how does it work? In that example it is supposed to retrieve info from a plain html file. I assumed that it would only work for something like a php file which made the server send back info when you make the call "echo..."</p>
