1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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