what you try is almost correct, but you dont hav to label the data and you have a wron placed }
in your code.
$.ajax({
url: 'foo/bar.php',
{
search: $(this).val(),
page: 'something'
},
...
});
for more information, take a look at the documentation.
EDIT: to read your get-variable, just do it like you always do: $s = $_GET['search'];
. maybe you have to use $.get
instead of $.ajax
or set the request type for your $.ajax
-call (don't know if it's POST by default, but you should be able to see this using firebug or something similar)