0
私はここに簡単なjQueryの機能を持っている:私はこのようなHREFからそれをトリガーする場合、私は、神に誓うクレイジーjQueryのAjaxのエラー
function submit_selection(del,submit)
{
del='yes';
submit=true;
var ITAMZ=new Array();
var count=0;
if (submit)
$('input[group="Blaaa"]:checked').each (function(){
ITAMZ[count]=$(this).attr('name');
count+=1;
});
$('#s_o_s_r').html('Submitting...');
$.ajax({
url: "script/order_select_submit.php",
context: document.body,
success: function(data){
$('#s_o_s_r').html(data);
},
error: function()
{
$('#s_o_s_r').html('error submitting');
},
async:true,
type: "POST",
data: {'ITAMZ' : ITAMZ, 'delete': del},
dataType: "html"
});
}
:
$('#remove_sel').click(function(){
submit_selection('yes',true);
});
それは常にエラーを返しますが、
$('input.client_btn').click(function(){
var shiiit=$(this).attr('name');
if (shiiit=='all') document.location.href="order_price.php?show=all";
else if (shiiit=='selected') {
///document.location.href="order_price.php?show=selected";
submit_selection('yes',true);
}
else document.location.href="order_price.php";
});
いつも成功を引き出します。 これはばかげている、私はちょうどそれを得ることはありません。 説明してください... Q. &
すべてのアイデア?..... – Anonymous
エラーは何ですか? –
フィドラーとデバッグを試してみてください。エラーメッセージが表示されます。 – dhinesh