Добро пожаловать! Это — архивная версия форумов на «Хакер.Ru». Она работает в режиме read-only.
 

JQuery блокирует работу php

Пользователи, просматривающие топик: none

Зашли как: Guest
Все форумы >> [Первый вопрос] >> JQuery блокирует работу php
Имя
Сообщение << Старые топики   Новые топики >>
JQuery блокирует работу php - 2011-09-13 11:27:56.796666   
sinusbox

Сообщений: 1
Оценки: 0
Присоединился: 2011-09-13 11:09:34.550000
php-скрипт на удаленном сервере блокируется данным JQuery: function showResults() {
// get the position of the input field right now (in case the DOM is shifted)
var pos = findPos(input);
// either use the specified width, or autocalculate based on form element
var iWidth = (options.width > 0) ? options.width : $input.width();
// reposition
$results.css({
width: parseInt(iWidth) + "px",
top: (pos.y + input.offsetHeight) + "px",
left: pos.x + "px"
}).show();
};

function hideResults() {
if (timeout) clearTimeout(timeout);
timeout = setTimeout(hideResultsNow, 200);
};

function hideResultsNow() {
if (timeout) clearTimeout(timeout);
$input.removeClass(options.loadingClass);
if ($results.is(":visible")) {
$results.hide();
}
if (options.mustMatch) {
var v = $input.val();
if (v != input.lastSelected) {
selectItem(null);
}
}
};


Как обойти данный JQ и отобразить данные спрятанные в диве:
$("div.other_st a").click(function(){
var race = $(this).attr("rel");
$("div.other_st").html("<img style='margin: 0 0 0 300px;' src='/images/loading.gif'>");
$("div.other_st").load("stavki.jq.php", {race_id: race }, function(){$("div.other_st").slideDown("normal")});
});

});
Post #: 1
Страниц:  [1]
Все форумы >> [Первый вопрос] >> JQuery блокирует работу php







Связаться:
Вопросы по сайту / xakep@glc.ru

Предупреждение: использование полученных знаний в противозаконных целях преследуется по закону.