28.01.2015 javascript ajax, bitrix ajax, jquery, js
26.10.2012 javascript No comments ajax, GET, javascript, jquery
------------------------------------------------------- var queryParameters = {}, queryString = location.search.substring(1),re = /([^&=]+)=([^&]*)/g, m; while (m = re.exec(queryString)) { queryParameters[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); } queryParameters['region'] = this.$Button.data('region'); queryParameters['city'] = this.$Button.data('city'); location.search = $.param(queryParameters); -----------------------------------------------------------------
27.09.2012 Bitrix, javascript No comments ajax, bitrix, bitrix ajax, header.php
14.08.2012 console, javascript No comments ajax, jquery
var GoAjax = false; var AjaxTimer; function keyupHandler(){ // console.log('keyupHandler'); clearTimeout(AjaxTimer); AjaxTimer = setTimeout('ajaxJet()', 5000); } function ajaxJet(){ // console.log('ajaxJet'); if(GoAjax === true){ return; } GoAjax = true; jQuery.ajax({ type: 'POST', data: 'FAVORITE_AJAX_CALL=Y&FAVORITE_AJAX_CALL_TYPE=DEL', dataType:'json', url: pathTocomponent, success: function(data){ GoAjax=false; }, error: function(){ GoAjax=false; } }); } function keydownHandler(){ // console.log('keydownHandler'); clearTimeout(AjaxTimer); } jQuery(document).keyup(keyupHandler).keydown(keydownHandler);