This issue really takes too long to fix and its getting sick...
Yesterday started to appear a really annoying bug which i cant fix its roots to why it happens...
When i use the following javascript code:
$(".reply_to_article").click(function(){
var cct = $.cookie('csrf_cookie_name');
var body = $(this).parent().find("textarea");
$.ajax({
type: "POST",
url: "http://www.domain.com/articles/replyToArticle",
dataType: 'json',
data: {
body : body.val(),
csrf_name : csrf_value
},
success: function(data) {
}
});
});
and click the reply_to_article button the request simply doesnt end and goes for unlimited time... when i check firebug the loading image always spins without ending... when i press ESC it doesnt return anything... also checked on all other browsers...
Also tried direct-access the ajax file and it works... but this POST doesnt
How can it works with GET but not POST?