How do you go about loading the response received from an HTTPRequest into a variable using jQuery?

I tried my ass off without success.

Examples that doesn´t work:

$(document).ready(...