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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:09:02+00:00 2026-05-25T10:09:02+00:00

Does anybody have any idea why this doesn’t work? $(document).ready(function() { var loading; var

  • 0

Does anybody have any idea why this doesn’t work?

$(document).ready(function() {

    var loading;
    var results;

    form = document.getElementById('form');
    loading = document.getElementById('loading');
    results = document.getElementById('results');

    $('#Submit').click( function() {

        if($('#Search').val() == "Desired name here..")
        {alert('Please enter a valid domain name, Thank you.');return false;}

        results.style.display = 'none';
        $('#results').html('');
        $("#loading").fadeIn(2000);

        $.post('process.php?domain=' + escape($('#Search').val()),{
        }, function(response){

            results.style.display = 'block';
            $('#results').html(unescape(response)); 
            loading.style.display = 'none';
        });

        return false;
    });

});

HTML:

<a href="#" id="Submit"><img src="img/submit_domain.png" height="30" width="73" class="host_sb"></a>

I have jQuery installed, and it works in every other browser.

This is my problem:

Nothing loads. The #loading doesn’t show which in turn doesn’t display the #results

  • 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-25T10:09:03+00:00Added an answer on May 25, 2026 at 10:09 am

    Your code is weird mix of plain JavaScript and jQuery.. not sure this cause the problem but try this optimized version:

    $(document).ready(function() {
        $('#Submit').click(function() {
            var searchValue = $('#Search').val();
            if (searchValue === "Desired name here..") {
                alert('Please enter a valid domain name, Thank you.');
                return false;
            }
    
            var oResults = $('#results');
            oResults.html('');
            oResults.hide();
            $("#loading").fadeIn(2000);
    
            var now = new Date();
            $.post('process.php?domain=' + encodeURIComponent(searchValue) + '&t=' + now.getTime() , { }, function(response) {
                oResults.show();
                oResults.html(decodeURIComponent(response)); 
                $("#loading").hide();
            });
    
            return false;
        });
    });
    

    If no luck, try debug if you don’t have any tools use plain old alert – add alert('got here'); in key lines like the beginning of the .click() function or the AJAX callback.

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

Sidebar

Related Questions

Does anybody have any reference material that details Cauchy-Reed algorithm? Googling for Cauchy-Reed Solomon
Does anybody have any experience with different fonts for OCR? I am generating an
I have three easy questions. Does anybody use QuickTest Pro for automated testing? Any
Does anybody have an idea why Google App Engine permits only a single thread
So this doesn't make any sense. I have actionscript in a flash-based button menu,
Does anybody have a short code sample that can be run in the VS
I've been looking for a simple regex for URLs, does anybody have one handy
I'm struggling to understand Dependency Properties in Silverlight 2. Does anybody have a good
Does anybody use the Class Designer much in Visual Studio? I have downloaded the
I have to analyse some existing Erlang code. Does anybody knows about a tool

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.