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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:29:07+00:00 2026-05-21T11:29:07+00:00

here is a site i’m refering to: http://www.graphicfirm.com/index.php if you scroll down to the

  • 0

here is a site i’m refering to:
http://www.graphicfirm.com/index.php

if you scroll down to the bottom and for example click on automotive while the pictures are being loaded you see a message that says searching…. and then when you click on a picture everything is kind of dimmed and you see the message loading…

how is this done with jquery/ajax?

correct me if im wrong but this is my best guess.

$.ajax({
       url: "ajax.php",
       type: "GET",
       dataType: "json",
       data: "attribute=myvalue",

        beforeSend: function()
        {

            $(".mymessage").show();
            //dim page
        },

        complete: function()
        {

            $(".mymessage").hide();
            //undim page
        },

        success: function(data)
        {

            //load data               

        }

});

if i got it right how would they be dimming the page?
if i got it wrong can you show me a sample?

thanks

  • 1 1 Answer
  • 1 View
  • 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-21T11:29:07+00:00Added an answer on May 21, 2026 at 11:29 am

    That’s how you should do this:

    $(".mymessage").show();
    $.ajax({
           url: "ajax.php",
           type: "GET",
           dataType: "json",
           data: "attribute=myvalue",
            success: function(data)
            {
               $(".mymessage").hide();
               //load data
            }
    });
    

    Put $(".mymessage").show(); before ajax call and hide it right when the success occurs.

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

Sidebar

Related Questions

I'm developing this site here for a client of mine: http://test.bebiafricanhairbraiding.com/osa/index.html I've encountered a
Here is the site in question http://kryptodesigns.com/dev/forum.php?styleid=3 In FF, Chrome everything looks fine, pay
There is a jQuery quiz posted on the W3Schools site here... http://www.w3schools.com/quiztest/quiztest.asp?qtest=jQuery Question #16
I've got a test site here with two columns, both with absolute positioning. http://dl.dropbox.com/u/17844821/zeug/heighttest.html
Here is the site: http://magicdynamic.com/zoom/ I'm using Google Chrome, and the upper-right elements are
Here is the site: http://magicdynamic.com/zoom2/ With Firefox the right empty div (#bookingForm and with
Go to the site here: http://en.heroes.gpotato.eu/ and click Register. What is the jquery function
I have a wordpress site here http://itrain.com.my/v3/ as my Home Page I am wondering
I found this code on the MSDN site here http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.open.aspx : private static void
I have a site here (http://beta.ohsinsider.com/) which has a dropdown in the search bar

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.