完全に正常に動作するjqueryタブ内でuploadifyプラグインを使用しています。アップロードが完了すると、uploadify 内で次のようなメールを送信します。
$('#file_upload').uploadify({
'fileTypeDesc': 'Image Files',
'fileTypeExts': '*.gif; *.jpg',
'swf': 'Scripts/Uploadify/uploadify.swf',
'uploader': 'FileUploadHandler.ashx',
'cancelImg': 'Scripts/Uploadify/uploadify-cancel.png',
'buttonText': 'Browse',
'onQueueComplete': function (queueData) {
senEmail();
}
});
私のsendEmail
機能はReady function
以下のようにページの中にあります:
var senEmail = function() {
var notes = $("#<%=txtMessage.UniqueID%>");
var msgbox = $("#cerror");
$("#cerror").hide();
$.ajax({
type: "POST",
url: "ContactMe.aspx/SendEmail",
data: "{'message': '" + notes.val() + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
if (msg.d == 'Sent') {
var $tabs = $('#tabs').tabs(); // declare the tabs
$tabs.tabs("url", 5, "/ContactConfirmation.aspx"); // change the URL of the selected tab
$tabs.tabs("select", 5 + 1); // refresh the tab content
alert("masTEST3");
$tabs.tabs("select", 5 ); // refresh the tab content
alert("endTEST");
}
else {
$("#cerror").show();
msgbox.html(msg.d);
}
}
});
};
上記は電子メールを送信するように正常に機能しますが、ユーザーを確認ページに転送すると、jquery エラーが発生Object Expected
し、同じタブの次のページに転送されません (これは他のページで機能します)。
あなたの助けに感謝。
編集:::
ここにIE9エラーがあります:
SCRIPT5007: Object expected
jquery-1.8.3.min.js, line 2 character 24275
デバッガーは次の行にあります。
return!t||t!==!0&&e.getAttribute("classid")===t}})