The success function takes a parameter, which contains the fetched data. So in your example:
$(document).ready(
function(){ $.ajax({
type:"GET",
url:"file.php",
data:id,
success:function(txt){
$.prompt( txt,{ opacity: 0.2 });
},
// ... more ...
}
});
More examples are in the jQuery documentation.