【发布时间】:2012-08-06 12:22:12
【问题描述】:
$.ajax({
url: 'index.php?route=account/edit',
type: 'post',
data: $('#account_edit input[type=\'text\'], #account_edit input[type=\'password\'],**#account_edit input[type=\'file\']**,#account_edit input[type=\'radio\']:checked'),
dataType: 'json',
beforeSend: function() {
$('#button-update').attr('disabled', true);
$('#button-update').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-update').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$('.warning').remove();
$('.error').remove();
//alert(json['error']['firstname']);
if (json['redirect']) {
//location = json['redirect'];
}
}
【问题讨论】:
-
请添加一些问题描述。