Ajax/jquery を使用して、別の php スクリプトにリダイレクトし、スクリプト内でコマンドを実行できるようにしたいと考えています。
以下に jquery/ajax コード関数があります。私の質問は、「cancelimage.php」スクリプトにリダイレクトするための jquery.ajax 関数は正しいですか?
$(imageuploadform).find(".imageCancel").on("click", function(event) {
$('.upload_target_image').get(0).contentwindow
$("iframe[name='upload_target_image']").attr("src", "javascript:'<html></html>'");
jQuery.ajax("cancelimage.php");
return stopImageUpload(2);
});