Как это?
/* 'somepage.php' is our script source.
'username' is our varible, jonathansampson is the value
'result' will hold anything the script sends back
'text' is the type of data we're expecting. */
$.get("somepage.php", {"username":"jonathansampson"}, function(result){
alert(result);
}, "text");