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 8144213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:19:04+00:00 2026-06-06T13:19:04+00:00

I need that on every page change or on some elemetents (a, input[button, submit],

  • 0

I need that on every page change or on some elemetents (a, input[button, submit], data-role=button) click event show loading message. I tried this piece of code:

$(document).live(`pagebeforehide`, function(){
    $.mobile.showPageLoadingMsg();
    //More stuff to do
});

but it’s not working.

  • 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-06T13:19:05+00:00Added an answer on June 6, 2026 at 1:19 pm

    I think you can set this up in the Global Configs:

    • http://jquerymobile.com/demos/1.1.0/docs/api/globalconfig.html

    loadingMessage string, default: “loading”

    Set the text that appears when a page is loading. If set to false, the message will not
    appear at all.

    loadingMessageTextVisible boolean, default: false

    Whether the text should be visible when a loading message is shown. The text is always
    visible for loading errors.

    And here is the docs for $.mobile.showPageLoadingMsg method

    • http://jquerymobile.com/demos/1.1.0/docs/api/methods.html

    Here is an example of using the loading message/spinner with a click event

    • http://jsfiddle.net/J8nYh/

    JS

    $("input, a:jqmData(clickload='show')").on('click', function() {
        console.log('clicked show');
        $.mobile.showPageLoadingMsg("b", "This is only a test", true);
    });
    
    $("input, a:jqmData(clickload='spin')").on('click', function() {
        console.log('clicked spin');
        $.mobile.showPageLoadingMsg("b", "This is only a test", false);
    });
    
    $("input, a:jqmData(clickload='hide')").on('click', function() {
        console.log('clicked hide');
        $.mobile.hidePageLoadingMsg();
    });
    

    HTML

    <div data-role="controlgroup" data-type="horizontal">
        <a href="#" id="showMe" data-role="button" data-clickload="show">Show Loading Message</a>
        <a href="#" id="showMe" data-role="button" data-clickload="spin">Show Loading Spinner</a>
        <a href="#" id="hideMe" data-role="button" data-clickload="hide">Hide Loading Message/Spinner</a>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to achieve this using Expression Blend 3. I need that every
I need to run a script every night that connects to a Web Service
I need to create daemon that will monitor certain directory and will process every
How to change character casing in TextBox? I need that 1 line character been
I need to use some data, calculated by JS (for example: window size) as
TLDR I need to change a javascript variable on the same page after clicking
Today I was assigned a bug saying that some page elements don't work on
I need a client-side script to confirm that the Timer's OnTick event can proceed.
What I'm looking for is some way to monitor the page_load of every page
In onw of our application, we have some reports that need very specific margins

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.