WordPress を 3.5 に更新しましたが、エラーが発生しました。J-query が機能していません。wordpress 3.5 マスター リストを確認し、デバッガー スクリプトを試しましたが、うまくいきませんでした。このエラーが発生しました (Uncaught TypeError: 未定義のメソッド 'ajax' を呼び出せません)。
エラーに関する情報:
1)。Chrome、Firefox、Safari、Internet Explorer でエラーが発生しました。2)。SCRIPT_DEBUG (define;) はエラーを修正しませんでした。3)。J クエリ エラー 4)。ファイルの場所: /themes/ * */library/includes ファイル名は image_uploader.php で、行番号は 769 です。
エラー: Uncaught TypeError: 未定義のメソッド 'ajax' を呼び出せません
function goToIndexforsave() {
document.getElementById('sorted_successmsg_div').innerHTML = 'processing ...';
var img_save_url = 'http://www.holidayvillas4hire.com/index.php?page=sort_image&pid='+document.getElementById('image_sort').value;
$.ajax({
url: img_save_url ,
type: 'GET',
dataType: 'html',
timeout: 20000,
error: function() {
alert('Error loading agent favorite property.');
},
success: function(html) {
document.getElementById('sorted_successmsg_div').innerHTML = html;
}
});
return false;
}