Ok, trovato (usa firefox ed installa il plugin FireBug!)
- passando il mouse viene effettuata la chiamata ajax e la risposta è:
codice:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>405 Method Not Allowed</TITLE>
</HEAD><BODY>
<H1>Method Not Allowed</H1>
The requested method POST is not allowed for the URL /demo-pages/ajax-tooltip.html.
</BODY></HTML>
Da cui si deduce che la pagina viene chiamata col metodo POST ... ma un file .html, a quanto ne so, va chiamato con GET, da cui:
File js/ajax.js
codice:
function sack(file) {
this.xmlhttp = null;
this.resetData = function() {
this.method = "POST";
......
cambia il metodo:
codice:
function sack(file) {
this.xmlhttp = null;
this.resetData = function() {
this.method = "GET";
HTH
Zappa