• DONATE to NULLED!
    Форуму и его команде можно помочь, мотивировать модераторов разделов.
    Помогите модератору этого раздела killoff лично.

Помощь Почему не работает со стандартным jQuery DLE 9.2?

Статус
В этой теме нельзя размещать новые ответы.

pro10026

Постоялец
Регистрация
10 Мар 2010
Сообщения
58
Реакции
1
Работает на jQuery 1.2.3. На стандартном DLE то есть 1.4.4 не работает
PHP:
<script>
$(document).ready(function()
{
$.ajax({
type: 	'POST',
url: 	'/engine/modules/gett.php',
data: 	'torrnetnamefile={$torrent1}',
dataType: 'json',
success: function(msg)
{
if(parseInt(msg.status)==1)
{
$('#total_downloaded-{$row['id']}').text(msg.t_downloaded);
$('#total_seeds-{$row['id']}').text(msg.t_complete);
$('#total_leachers-{$row['id']}').text(msg.t_incomplete);
$('#torrent_size-{$row['id']}').text(msg.t_size);
$('#torrent_hash-{$row['id']}').text(msg.t_hash);
$('#torrent_name-{$row['id']}').text(msg.t_name);
$('#torrent_ann-{$row['id']}').text(msg.t_ann);
}
else if(parseInt(msg.status)==0)
{
$('#total_downloaded-{$row['id']}').text(msg.t_downloaded);
$('#total_seeds-{$row['id']}').text(msg.t_complete);
$('#total_leachers-{$row['id']}').text(msg.t_incomplete);
$('#torrent_size-{$row['id']}').text(msg.t_size);
$('#torrent_hash-{$row['id']}').text(msg.t_hash);
$('#torrent_name-{$row['id']}').text(msg.t_name);
$('#torrent_ann-{$row['id']}').text(msg.t_ann);
}
}
});
    $('#dwntorrenttxtx-{$row['id']}').toggle(
      function () {
        $('#div_torrentfiles-{$row['id']}').fadeIn('slow');
      },
      function () {
        $('#div_torrentfiles-{$row['id']}').fadeOut('slow');
      });
});
</script>
 
Работает на jQuery 1.2.3. На стандартном DLE то есть 1.4.4 не работает

попробуйте $ на jQuery поменять

Код:
[B]$[/B][COLOR=#000000][COLOR=#007700]([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#0000bb]ready[/COLOR][COLOR=#007700](function() ......[/COLOR][/COLOR]
[B]jQuery[/B][COLOR=#000000][COLOR=#007700]([/COLOR][COLOR=#0000bb]document[/COLOR][COLOR=#007700]).[/COLOR][COLOR=#0000bb]ready[/COLOR][COLOR=#007700](function() ......[/COLOR][/COLOR]
во всём сценарии
 
пробовал, результат тот же!
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху