I don’t understand this, I have this code:
<html>
<head>
<title>Problema</title>
<script language="javascript" type="text/javascript" src="jquery-1.7.min.js"></script>
</head>
<body>
<script language="javascript">
$.get("hola.html", function(respuestaSolicitud){
alert(respuestaSolicitud);
})
</script>
</body>
</html>
The file hola.html contains only a string “hola hola”.
The alert is showing this string: [Object XMLDocument], according a manual this should show an alert with “hola hola” text.
I think this page will help you: http://api.jquery.com/jQuery.get/
And particularly this paragraph: