Kategori Arşivleri: Ajax

Ajax decoded

success: function (data) { var decoded = $(‘<div/>’).html(data.d).text(); //here you go $(‘#content’).html(decoded); }

ajax sağ sol div scroll ayarları

The animation is getting called each time the button is clicked to before the animation queue declares a stop You can use .stop() before .animate() to acheive this $(“#left-arrow”).click(function () { var leftPos = $(‘#numWrap’).scrollLeft(); $(“#numWrap”).stop().animate({scrollLeft: leftPos – 200}, 800); }); $(“#right-arrow”).click(function () { var leftPos = $(‘#numWrap’).scrollLeft(); $(“#numWrap”).stop().animate({scrollLeft: leftPos + 200}, 800); });