As the documentation states, you need to output valid JavaScript, so quote your string (and don't forget to escape if your ID might have quotes or whatnot in it):
$return = "\" id" . $user . " does not exist.\"";
You wouldn't type
var foo = id 2 does not exist.;
in JS either, would you?
Matti Virkkunen
2010-06-03 15:34:07