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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:41:24+00:00 2026-05-25T01:41:24+00:00

Imagine the Google search bar. When you type something it is Smart Searchable where

  • 0

Imagine the Google search bar. When you type something it is Smart Searchable where it gives you possible results while typing. My search bar does that. But then the Search Icon to the right in Google while typing and after hitting enter on an option, I would like the Search Icon to change out to a Loading Gif while it processes?

Can someone share direction on what I’m missing in getting an Ajax Loading gif to be visible while waiting for options and then once chosen showing the Loading gif while waiting to show your result?

Using ASP and jQuery

Here is what I got so far:

This is what it should be before anything is typed in the search box, a magnifying glass:

`
<img style="background:url(/images/image_giblets_20x.png) no-repeat scroll right -414px transparent" src="images/transparent_100x100.png" width="23px" height="23px" />
`

Then while typing it is set up to show results of what you might be looking for. And while those results are loading I would like to have a loading icon spin.

`
<img id="loading_image" src="/images/ajax-loader.gif" alt="Loading..." />
`

It would then stop and go back to the Magnifying glass and then once you click Enter or select an option and click enter or maybe even just type a search result and click Enter the loading icon would then spin again indicating you to wait while the result is generating.

So currently in HTML/ASP page I have this:

`
<img style="background:url(/images/image_giblets_20x.png) no-repeat scroll right -414px transparent" src="images/transparent_100x100.png" width="23px" height="23px" />
`

`
<img id="loading_image" src="/images/ajax-loader.gif" alt="Loading..." />
`

Then I have a JS page that has this:

`
// Smart Search ajax loader
$(window).load(function() {
        $('#loading_image').hide();
    });
`

I want to hide the first image and show the second image and once the loading is done to go back to the first image.

Thanks All for the clarity Cheers!!

Here’s where I’m at now with it. The images are both still visible side by side:

My ASP:

`
      <div id="smart_search">

        <asp:TextBox ID="searchfield" runat="server" />

        <asp:TextBoxWatermarkExtender ID="TBWE2" runat="server" TargetControlID="searchfield" WatermarkText="Search alpaca, farm and owner names here!" WatermarkCssClass=""/>
        <asp:HiddenField ID="HiddenField1" runat="server"  />
        <img id="magnifying_glass" style="background:url(/images/image_giblets_20x.png) no-repeat scroll right -414px transparent" src="images/transparent_100x100.png" width="23px" height="23px" />
                <img id="loading_image" src="/images/ajax-loader.gif" alt="Loading..." />

      </div>
`

My JS:

`
// Smart Search ajax loader
 $("#searchfield").bind("keyup", function(args){
     //check key value 
     $('#magnifying_glass').hide();
     $('#loading_image').show();
     var searchvalue = $("#searchfield").val();
     $.ajax({
         data: "searchvalue=" + searchvalue,
         url: "/getsearchvalue",
         success: function(result){
             $('#loading_image').hide();
             $('#magnifying_glass').show();
             //handle result
         }
            });
});
`
  • 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-25T01:41:26+00:00Added an answer on May 25, 2026 at 1:41 am

    In my project I do like this, hope it’s useful for your problem

    <input id="searchbox" type="textbox">
    <script type="text/javascript">
    $(document).ready(function(){
        $("#searchbox").bind("keyup", function(args){
            //check key value 
            $('#first_image').hide();
            $('#loading_image').show();
            var searchvalue = $("#searchbox").val();
            $.ajax({
                data: "searchvalue=" + searchvalue,
                url: "/getsearchvalue",
                success: function(result){
                    $('#loading_image').hide();
                    $('first_image').show();
                    //handle result
                })
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Imagine that I have url http://www.google.com/subdomain/blah-blah.../.. /.. So I want to extract 4 things
Imagine a website that uses google gears as a storage mechanism for various application
I am currently facing a problem that is concerning the google search, curl and
Imagine you homebrew a custom gui framework that doesn't use windows handles (compact framework,
Imagine that you have a simple site with only 2 pages: login.aspx and secret.aspx.
I enjoy working with Google Analytics and the ways that I am able to
Imagine I have a string - something like this: This is some really cool
I'm trying to write a script for Greasemonkey to modify Google Instant results. I
While this isn't strictly programming related, it's something I've run into as a web
Imagine I want to create game Rock-paper-scissors for Google Waves. I am thinking to

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.