I have implemented sticky notes functionality in one of my projects and I have found a problem related to browser compatibility. My code is not working in IE8, but it works fine in other browsers.
The error I get is:
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
These are the lines between no 40 to 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);
    });
Any help on what the problem might be would be much appreciated.
 
     
     
     
    