OK, guys, thanks for your time, before anything. Here is the thing, I am learning jQuery and I am stuck in the AJAX chapter, because this next thing is not working, and I have been searching a lot. Well, I have a PHP page in my PC (using WAMP Server), with the next simple code:
<?php
echo '<p>Hola</p>';
?>
The file's name is 'saludo.php' and it's inside 'pruebaAJAX' folder, in 'www'. Now I have my jQuery code, also really easy:
$(document).ready(function(){
$.get('http://localhost/pruebaAJAX/saludo.php', function(data){
$('#contenido').html(data);
});
});
Where 'contenido' is a DIV in the HTML page. If I access 'http://localhost/pruebaAJAX/saludo.php' using a link form my HTML page, everything works amazing, but somehow with $.get, things don't work. Every example I have checked is really close to this. Why then my concrete example is not running well? (actually not running at all). Could someone please tell me what is wrong in this code? Thank you very much...