[jQuery] Jquery Location.href or load --problem

[jQuery] Jquery Location.href or load --problem


Hi all, I would like to call up a page using location.href or Ajax in
the Jquery way, I ried this:
$("#preview_button").click(function(){
$("#main").load("/de/testsite/preview_profile");
});
and this
$("#preview_button").click(function(){
window.location.href("/de/testsite/preview_profile");
});
Strangely, both methods do not work, anyone tell me what I´m doing
wrong?
Thanks