http://levi.yii.so/archives/3453
$(
"#first"
).click(
function
(){
var
w = window.open();
$.ajax({
type:
'POST'
,
url:
'/deposit/paypoints'
,
success:
function
(re) {
w.location = re.url;
},
error:
function
(){
w.close();
}
});
});