プロジェクトの1つに付箋機能を実装しましたが、ブラウザの互換性に関連する問題が見つかりました。私のコードはIE8では機能しませんが、他のブラウザーでは正常に機能します。
私が得るエラーは次のとおりです。
Message: Object doesn't support this property or method
Line: 45
Char: 3
Code: 0
URI: http://dev.mesocial.co/orange_theme/js/sticky_note_func.js
これらは40から50の間の線です:
var moved = function(note) {
// added by rupesh
// alert(JSON.stringify(lastCreatedNoteId));
var passId = note.id
if(lastCreatedNoteIdForJs.indexOf(note.id) != -1)
passId = lastCreatedNoteId[note.id];
// till here ///////
$.post(SITE_URL+'/dashboard/create-sticky-note/act/moved/sticky_note_id/'+passId+'/pos_x/'+note.pos_x+'/pos_y/'+note.pos_y,
function(data) {
//alert(data);
});
問題が何であるかについての助けをいただければ幸いです。