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

  • Home
  • SEARCH
  • 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 8414981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:18:45+00:00 2026-06-10T01:18:45+00:00

I have to customize the dwr.util.useLoadingMessage() , now it is coming in upper right

  • 0

I have to customize the dwr.util.useLoadingMessage(), now it is coming in upper right corner with a red background.
now i have to change this to middle of the screen.

i have googled it but couldn’t get the exact solution
thanks in advance.

  • 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-06-10T01:18:47+00:00Added an answer on June 10, 2026 at 1:18 am

    I have customized it like this.
    downloaded and included the dwr util.js in the project and modified the loadingMessage like this

    dwr.util.useLoadingMessage = function(message) {
      var loadingMessage;
      if (message) loadingMessage = message;
      else loadingMessage = "Loading";
      dwr.engine.setPreHook(function() {
        var disabledZone = dwr.util.byId('disabledZone');
        if (!disabledZone) {
          disabledZone = document.createElement('div');
          disabledZone.setAttribute('id', 'disabledZone');
          disabledZone.style.position = "absolute";
          disabledZone.style.zIndex = "1005";
          disabledZone.style.left = "0px";
          disabledZone.style.top = "0px";
          disabledZone.style.width = "100%";
          disabledZone.style.height = "100%";
          // IE need a background color to block click. Use an invisible background.
          if (window.ActiveXObject) {
            disabledZone.style.background = "white";
            disabledZone.style.filter = "alpha(opacity=0)";
          }
          document.body.appendChild(disabledZone);
          var messageZone = document.createElement('div');
          messageZone.setAttribute('id', 'messageZone');
          messageZone.style.position = "absolute";
          messageZone.style.top = "350px";
          messageZone.style.right = "600px";
          messageZone.style.background = "red";
          messageZone.style.color = "white";
          messageZone.style.fontFamily = "Arial,Helvetica,sans-serif";
          messageZone.style.padding = "4px";
          messageZone.style.zIndex = "1005";
          document.body.appendChild(messageZone);
          var text = document.createTextNode(loadingMessage);
          messageZone.appendChild(text);
          dwr.util._disabledZoneUseCount = 1;
        }
        else {
          dwr.util.byId('messageZone').innerHTML = loadingMessage;
          disabledZone.style.visibility = 'visible';
          dwr.util._disabledZoneUseCount++;
          dwr.util.byId('messageZone').style.visibility = 'visible';
        }
      });
      dwr.engine.setPostHook(function() {
        dwr.util._disabledZoneUseCount--;
        if (dwr.util._disabledZoneUseCount == 0) {
          dwr.util.byId('disabledZone').style.visibility = 'hidden';
          dwr.util.byId('messageZone').style.visibility = 'hidden';
        }
      });
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read on this site that it is necessary to customize the setOnItemSelectedListener
i have create a customize feature in open atrium. now i have to implement
I have experienced to customize the twitter bootstrap navbar color successfully.. Now I want
I have created my own custom workflow (for now this is just adhoc workflow
Does any one have tried to customize default section index displayed in UITableView. I
I have selected two components in the Customize Layout screen using a hint from
I have a subclass of NSWindow to customize one of my windows for my
i have data-grid in my application and i want to customize my data-grid so
I have some *Type form classes and a forms.html.twig to customize form appearance. By
i have a jquery slider function and i want to customize it. my requirement

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.