weixin_33716557 2015-08-22 14:18 采纳率: 0%
浏览 85

jQuery:POST数据动画

I'm getting data with AJAX like this:

$.post("ajaxLog.php", {func: 'getAllChallenges', arr: array}, function(data){
    $(".mainpageAppending").prepend(data);
    $(".mainpageChallengeResponseDiv").css('display', 'none');

    $(data).filter(".mainpageChallengeDiv").toggle(function(){
        $(data).filter(".mainpageChallengeDiv").slideToggle();
    });

    tmout = setTimeout("intervalLoading()", 10000);
});

I need to do animation of prepended data with .mainpageChallengeDiv. Everything is OK, but that animation doesn't work.

  • 写回答

1条回答 默认 最新

  • 程序go 2015-08-22 14:27
    关注

    Sorry, it is maybe impossible so I started thinking about Server side, and work it when I set it opacity 0 and all divs animating with animate opacity 1. Anyway thanks, but if is there solutions to lower traffic of web browser so I'm in with that solution.

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?