IE error on jquery Line 4618
        Posted  
        
            by eo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by eo
        
        
        
        Published on 2010-04-26T16:41:46Z
        Indexed on 
            2010/04/26
            16:43 UTC
        
        
        Read the original article
        Hit count: 452
        
I am trying to save some css information into cookies with the below jquery script.
Everything is perfectly fine for Firefox however IE throws an error on jquery Line 4618, whenever i include this file
jQuery(document).ready(function() {
  // cookie period
  var days = 365;
  // load positions and z-index from cookies
  $("div[id*='tqitem']").each( function( index ){
    $(this).css( "left", 
      $.cookie( "im_" + $(this).attr("id") + "_left") );
    $(this).css( "top", 
      $.cookie( "im_" + this.id + "_top") );
     $(this).css( "zIndex", 
      $.cookie( "tqz_" + this.id + "_zIndex") );
  });
  //  bind event
  $(".pagenumbers").draggable({cursor: "move"});
  $("div[id*='tqitem']").bind('dragstop', savePos);
  $("div[id*='tqitem']").bind('dragstop', savePot);
  // save positions into cookies
  function savePos( event, ui ){
    $.cookie("im_" + $(this).attr("id") + "_left", 
      $(this).css("left"), { path: '/', expires: days });
    $.cookie("im_" + this.id + "_top", 
      $(this).css("top"), { path: '/', expires: days });
  $.cookie("im_" + this.id + "_zIndex", 
     $(this).css("zIndex"), { path: '/', expires: days });
  };
var thiss = $("div[id*='tqitem']");
function savePot(){
      $("div[id*='tqitem']").each(function (i) {
          $.cookie("tqz_" + $(this).attr("id") + "_zIndex", 
  $(this).css("zIndex"), { path: '/', expires: days });
      })
};
});
/*ADDITIONAL INFO:
SCRIPT HIERARCHY
Jquery itself
Jquery ui
Jquery cookie plugin
Save cookies js
no matter how i ordered them the result did not change*/
© Stack Overflow or respective owner