Note that there are some explanatory texts on larger screens.

plurals
  1. POAjax request not working in IE with jQuery
    primarykey
    data
    text
    <p>We are facing a peculiar problem of ajax request not being send using jquery. Interestingly, it works on IE8 but not on below versions. I have tried (al)most all of the things mentioned in other related posts but no success.</p> <p>May be I am missing something big here. But IE seems to be creating lots of trouble both from functionality and css dev perspective. :(</p> <p>Our web app is based on rails.</p> <p>Any helps/pointers would be great.</p> <p>Thanks.</p> <pre><code>jQuery.ajaxSetup({ cache: true, 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} }); $(document).ajaxSend(function(event, request, settings) { if (typeof(AUTH_TOKEN) == "undefined") return; if ( settings.type != 'GET' &amp;&amp; settings.type != 'get') { settings.data = settings.data || ""; settings.data = (settings.data ? settings.data + "&amp;" : "") + "authenticity_token=" + encodeURIComponent( AUTH_TOKEN ); } }); $(document).ready(function(){ $(".signup").live('click', function() { var a_key = $('#f_auths').find('input[name="a_key"]').val(); var a_uid = $('#f_auths').find('input[name="a_uid"]').val(); var a_provider =$('#foreign_auths').find('input[name="a_provider"]').val(); $(this).closest('form').find('input[name="user[provider]"]').val(a_provider); $(this).closest('form').find('input[name="user[key]"]').val(a_key); $(this).closest('form').find('input[name="user[uid]"]').val(a_uid); $.ajax({ url: "/users", type: 'POST', data: $(this).closest('form').serialize() , beforeSend: function(){ $('#loading').css('display','block'); }, success: function(){ $('loading').css('display','none'); }, }); return false; </code></pre> <p>});</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload