retrieving page content per AJAX [duplicate]

the problem was the $ not defined, toscho comment was right