Ajax loading div is not displaying

Discussion in 'jQuery' started by chamika weerasinghe, Jul 10, 2014.

  1. #1
    $("#error_search_msg").html('<div class="da-message warning"> Please Wait....</div> ');

    $.post(site_url + '/PR/......', {depid: depid, startdt: startdt }, function(msg) {
    if (msg != '') {
    alert (msg);
    $("#uid_msg").html('');
    $("#error_search_msg").html('<div class="da-message success">Successfully....</div> ');
    $("#view_report").html(msg);
    }
    });


    this is on click function when click "error_search_msg" div not showing in chrome but it working on firefox
    both are showing when success the ajax (that i checked from add by alert then success show please wait and alert when alert ok show success)
    Screenshot_3.png
    Screenshot_1.png
    Screenshot_2.png


    With out Alert Like This

    Screenshot_3.png
    Screenshot_2.png
     
    chamika weerasinghe, Jul 10, 2014 IP
  2. CssValleyMusic

    CssValleyMusic Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    $("#error_search_msg").show().html('<div class="da-message warning"> Please Wait....</div> ');

    $.post(site_url + '/PR/......', {depid: depid, startdt: startdt }, function(msg) {
    if (msg != '') {
    alert (msg);
    $("#uid_msg").html('');
    $("#error_search_msg").show().html('<div class="da-message success">Successfully....</div> ');
    $("#view_report").html(msg);
    }
    });
     
    CssValleyMusic, Sep 9, 2014 IP