title: jQuery error only in IE (8) - "Object doesn't support..."
body: <p>I have this snippet of code (AJAX) in jQuery.</p>
  
  <pre><code>$.get('someScript.php?lat=' + clickedLatLng.lat() + '&amp;lon=' + clickedLatLng.lng() + '&amp;value=5', doSomething);
  </code></pre>
  
  <p>And this is a function (shows an icon on Google Maps and changes some values in input fields).</p>
  
  <pre><code>function doSomething(data) {
      data = data.trim();
      data = data.split(","); 
      var stopName = data[0];
      var stopLat = data[1];
      var stopLon = data[2];
  
      $("#start").val(stopName);
  
      if (startMarker == null) {
          startMarker = new google.maps.Marker({
                              position: new google.maps.LatLng(stopLat,stopLon),
                              map: map,
                              zIndex: 2,
                              title: stopName,
                              icon: startImage 
          });
      } else {
          startMarker.setPosition(new google.maps.LatLng(stopLat,stopLon));
      }
  }
  </code></pre>
  
  <p>But it works in all browsers except IE, in my case IE 8. I didn't test it in IE 6/7. It pops out this error...</p>
  
  <p><img src="https://i.stack.imgur.com/QRoyf.jpg" alt="jquery error in IE 8"></p>
  
  <p>I looked into <strong>jquery.js</strong> and this is the function where it breaks...</p>
  
  <pre><code>            // resolve with given context and args
              resolveWith: function( context, args ) {
                  if ( !cancelled &amp;&amp; !fired &amp;&amp; !firing ) {
                      firing = 1;
                      try {
                          while( callbacks[ 0 ] ) {
                              callbacks.shift().apply( context, args );
                          }
                      }
                      finally {
                          fired = [ context, args ];
                          firing = 0;
                      }
                  }
                  return this;
              },
  </code></pre>
  
  <p>actually</p>
  
  <pre><code>callbacks.shift().apply( context, args );
  </code></pre>
  
  <p>Can someone help? Where is the problem? The same thing with <strong>jquery-1.4.4.js</strong></p>
  
  <p><strong>EDIT:</strong> This is my larger code...</p>
  
  <pre><code>    // Set some events on the context menu links
  contextMenu.find('a').click( function()
  {
      // fade out the menu
      contextMenu.fadeOut(75);
  
      // The link's href minus the #
      var action = $(this).attr('href').substr(1);
  
      switch (action) {
          case 'startMenu':
              $.get('someScript.php?lat=' + clickedLatLng.lat() + '&amp;lon=' + clickedLatLng.lng() + '&amp;radijus=5', doSomethingWithData1);
              break;
  
          case 'stopMenu':
              $.get('someScript.php?lat=' + clickedLatLng.lat() + '&amp;lon=' + clickedLatLng.lng() + '&amp;radijus=5', doSomethingWithData2);    
              break;
      }
  
      return false;
  });
  </code></pre>
  
  <p>When user clicks on an item within <strong>context menu</strong> on Google Maps then do "<strong>doSomethingWithData1</strong>" and "<strong>doSomethingWithData2</strong>". This is also some code for context menu</p>
  
  <pre><code>    // Hover events for effect
  contextMenu.find('a').hover( function() {
      $(this).parent().addClass('hover');
  }, function() {
      $(this).parent().removeClass('hover');
  });
  </code></pre>
  
  <p>and this for <strong>AJAX</strong></p>
  
  <pre><code>$.ajaxSetup ({  
          cache: false  
      }); 
  </code></pre>
  
  <p>This is how I included my <strong>jQuery</strong> scripts.</p>
  
  <pre><code>    &lt;!-- Google Maps --&gt;       
  &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  
  &lt;!-- Load Javascript / jQuery --&gt;
  &lt;script type="text/javascript" src="js/jquery-1.5.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.ui.core.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.ui.position.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.ui.widget.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.ui.autocomplete.js"&gt;&lt;/script&gt;
  
  &lt;link rel="stylesheet" href="js/jquery.ptTimeSelect.css" type="text/css" media="all" /&gt;
  
  &lt;script type="text/javascript" src="js/jqtransformplugin/jquery.jqtransform.js"&gt;&lt;/script&gt;
  &lt;link rel="stylesheet" href="js/jqtransformplugin/jqtransform.css" type="text/css" media="all" /&gt;
  
  &lt;script type="text/javascript" src="js/jquery.ui.datepicker.js"&gt;&lt;/script&gt;
  </code></pre>