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

Помощь Знатокам Dle Ajax-а

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

pro10026

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

Буду признателен!
 
И что?
///////////
 
Это надо в раздел платных услуг, с бюджетом :confused:
 
Неужели всё так сложно?
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху