I tried to do something like this :
var msg = $.get(\"my_script.php\");
I thought msg would be set to the text returned by my_script.php,i.
The response text is available in the success callback; do what you need to do with it there.