Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6815291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:47:22+00:00 2026-05-26T20:47:22+00:00

For whatever reason, my jquery loading overlay doesn’t load at all under any circumstance

  • 0

For whatever reason, my jquery loading overlay doesn’t load at all under any circumstance even though the same code was working just days ago. Well, not the exact same code. I have been trying to get the overlay to resize with the window, and I have been trying different things, but I don’t understand what I did that caused the overlay to never even show up? Here is the code that should attach to the overlay to the correct div…

function MRNSearchInternals()
{
    //debugger;
    var form = $("#MRNSearch");
    $div = $("#TabView1");
    var srlzdform = form.serialize();
    var PopID = <% =PopID %>;
    var options = [];
    var $url = $("#target").attr("action");
    $('<div id="overlay">').css({
        position: 'absolute',
        opacity: 0.2,
        top : $div.offset().top,
        left : $div.offset().left,
        width : $div.offset().width,
        height : $div.outerHeight(),
        background: 'blue url(<%=Url.Content("~/images/ajax-loader.gif")%>) no-repeat center'
    }).hide().appendTo($div);    

    $("#overlay").fadeIn();
    $.post('<%:Url.Action("SearchByMRN", "PatientACO")%>', srlzdform, function (data) 
    {                   
        DisplayDemographicSearch(data);
        $("#overlay").fadeOut();
    });
}

Notice how I create the div. I give it an id, and then I call it’s css atribute. From there I set all the css attributes. I then attempt to call fadeIn, and fadeOut after the ajax call. Any body have any idea why this isn’t working? Any help would be great.

Some More clarification

Also notice how I chose the div to overlay. I get a div id from my dom

    $div = $("#TabView1");

Also, I looked the source, and I do have that particular div in there. So that is not the problem. Somehow or the other, it simply isn’t showing up.
UPDATE: The DOM I get
Below is what is produced from the jquery code. It appears as though everything is being created fine. Note also, that display is set to none. That is what I would expect since I have the overlay fade out. My question is why does it never show up.

<div class="TabView" id="TabView1">
    <div class="Tabs">...</Tabs>
    <div class="Pages">
    <div id="overlay" style="left: 114px; top: 205px; height: 452px; display: none; position: absolute; opacity: 0.2; background-image: url("/images/ajax-loader.gif"); background-attachment: scroll; background-repeat: no-repeat; background-position-x: center; background-position-y: center; background-size: auto; background-origin: padding-box; background-clip: border-box; background-color: blue;"/>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:47:23+00:00Added an answer on May 26, 2026 at 8:47 pm
    function MRNSearchInternals()
    {
        //debugger;
        var form = $("#MRNSearch");
        $div = $("#TabView1");
        var srlzdform = form.serialize();
        var PopID = <% =PopID %>;
        var options = [];
        var $url = $("#target").attr("action");
        $('<div id="overlay">').css({
            position: 'absolute',
            opacity: 0.2,
            top : $div.offset().top,
            left : $div.offset().left,
            width : $div.offset().width, //<- The problem is right here should be $div.width
            height : $div.outerHeight(),
            background: 'grey url(<%=Url.Content("~/images/ajax-loader.gif")%>) no-repeat center'
        }).hide().appendTo($div);    
    
        $("#overlay").fadeIn();
        $.post('<%:Url.Action("SearchByMRN", "PatientACO")%>', srlzdform, function (data) 
        {                   
            DisplayDemographicSearch(data);
            $("#overlay").fadeOut('slow', function () {
                 $("#overlay").remove();
            });
        });
    }
    

    Man. That was real hard to debugg. I wish Visual studio 2010 had better jquery debugging capability. Thankfully, the next version is supposed to be a better jquery debugger. But, the problem was the width attribute.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For whatever reason, I can't get XSLTProcessor() to work all the time. Here is
For whatever reason, ThreadPool 's QueueWorkItem doesn't return an IAsyncResult or some other handle
For whatever reason, I'm having trouble loading up a sound with the AVAudioPlayer .
Sometimes, for whatever reason, I have to produce patch-files (under Linux) that are in
Please check this page: http://islandhideaway.weebly.com/ For whatever reason, the flash slideshow moves over 1
We've written a RESTful server API. For whatever reason, we made the decision that
This is driving me nuts!@#!@# I can load the tinyMce plugin for jquery just
For whatever reason the following request gets no response from google. However if I
This should be a really simple process but for whatever reason, I am unable
For whatever reason, our company has a coding guideline that states: Each class shall

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.