title: What's possibly the reason that ajax success event is not being invoke in IE?
body: <p>I came along with a problem in IE, AJAX success event is not being invoke after link is successfully tweeted in twitter. I have this code:</p>
  
  <pre><code>jQuery(document).ready(function () {
      jQuery('#tbookmarklet').twitterbutton({
      url: myshareUrl,
      title: myTitle,
      layout: 'none',
      ontweet:function(response){
          jQuery.ajax({
          url: tCallbackUrl,
          type: 'get', 
          error: function() {
              alert('sorry, it fails');
          },
          success: function() {
              alert('tweet success');
          }
          });
      },  
  });
   jQuery.ajax({ url: 'https://platform.twitter.com/widgets.js', dataType: 'script', cache:true});
  });
  </code></pre>
  
  <p>No way it alerts the success message and it didn't fall into the error event too, so i can't really figure out the problem here. This only occurs in IE, not on other browser like firefox or chrome but link is posted successfully in twitter.</p>
  
  <p>I have read in the web to use the <code>complete</code> event but the problem there even if the ajax processing fails, it will still perform the function you specified in the complete event so its not really a good idea to use complete.</p>
  
  <p>What's wrong with my code? And what do i need to do to easily determine the probable cause of it. </p>
  
  <p>Thanks.</p>
  
  <p>I have to update my question:</p>
  
  <p>As suggested by Furqan to use crossDomain: true. I have updated my code into this:</p>
  
  <pre><code>  jQuery.ajax({ 
      url: 'https://platform.twitter.com/widgets.js', 
      dataType: 'jsonp', 
      crossDomain:true,   
      CallbackName: 'SocialMedia'
      });
  </code></pre>
  
  <p>instead of this:</p>
  
  <pre><code>jQuery.ajax({ 
         url: 'https://platform.twitter.com/widgets.js', 
         dataType: 'script', 
         cache:true
  });
  </code></pre>
  
  <p>but it doesn't fix my issue still. After further investigating i have found out that the ontweet event is not really triggered in IE. What could possible be the reason? Anyone encounteered this issue?</p>
  
  <p>In my IE network profiler, i got this result:</p>
  
  <p><a href="http://pastebin.com/fxxCyTSE" rel="nofollow">http://pastebin.com/fxxCyTSE</a></p>
  
  <p>But, it posted to twitter. My problem is just when its redirecting back to my website (from twitter to my site), the <code>success</code> event is not invoke because the <code>ontweet</code> event is not triggered too.</p>
  
  <p>Any idea on this?</p>
  
  <p>Update on this issue:</p>
  
  <p>After further research i have found out that there is really a bug with twitter code. There tweet event is not fired in IE.</p>
  
  <p>Links i found related to the issue:</p>
  
  <p><a href="https://dev.twitter.com/discussions/671" rel="nofollow">https://dev.twitter.com/discussions/671</a></p>
  
  <p><a href="https://dev.twitter.com/discussions/3884" rel="nofollow">https://dev.twitter.com/discussions/3884</a></p>
  
  <p><a href="https://dev.twitter.com/discussions/1640" rel="nofollow">https://dev.twitter.com/discussions/1640</a></p>