title: Get an image through jQuery AJAX
body: <p>The following image tag is in my Login Page</p>
  
  <pre><code>&lt;img id="CaptchaImg" alt="Captcha" src="@url.action("Captcha","Login")" style="" /&gt;
  </code></pre>
  
  <p>Now when I refresh my login Page, it works fine, and gets the image from the controller, but when I logOut and the login Page renders .the controller method is not being called.Problem is only in IE works fine on Chrome.Is there are work around?
  Can I do something with jQuery Ajax call to the controller, I tried this but the success method is not called. Is there any other way?</p>
  
  <pre><code>$.ajax({
      type: "GET",
      url: '/Login/CaptchaImage',
      datatype: "image",
      success: function(data) {
          debugger
          $('#CaptchaImg').attr('src', data);
      }
  });
  </code></pre>