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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:20:17+00:00 2026-05-18T20:20:17+00:00

We are using AJAX to send data to our database. I’ve added some feedback

  • 0

We are using AJAX to send data to our database. I’ve added some feedback for the user including a spinner (animated .gif) that spins during the request, and Pass/Fail text that is displayed to the user when the request is complete.

HTML:

<center>
    <table style="width:350px;">
        <tr>
            <td style="width:100px; min-width:100px;" align="right">
                <span id="spinner-and-text-displayed-here"></span>
            </td>
            <td style="width:150px">
                <input type="button" value="Submit" onclick="submit();"/>
                <input type="button" value="Cancel" onclick="cancel();"/>
            </td>
            <td style="width:100px"></td>
        </tr>
    </table>
</center>  

When the user clicks the submit button the spinner spins until the ajax callback is returned. At this point, the buttons do NOT shift. Once I receive the callback I display the text “Successful!” (displayed in the span using jQuery $(el).html("Successful!");), which causes the buttons to shift right. That message fades out (also using jquery), and once the button fades completely, the buttons shift back to their original position.

If I hardcode “Successful!” inside the span, the buttons are shifted, so I know it has something to do with the text (remember it doesn’t shift when the spinner is displayed [which uses the img tag]).

It doesn’t matter how wide i set the first td width.

Is there a way I can keep these buttons from shifting in IE?

  • 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-18T20:20:18+00:00Added an answer on May 18, 2026 at 8:20 pm

    Try adding border-collapse:collapse; to the style definition of the table and reduce the size of the middle cell.

    <center>
        <table style="width:350px;border-collapse:collapse;">
            <tr>
                <td style="width:100px; min-width:100px;" align="right">
                    <span id="spinner-and-text-displayed-here"></span>
                </td>
                <td style="width:145px">
                    <input type="button" value="Submit" onclick="submit();"/>
                    <input type="button" value="Cancel" onclick="cancel();"/>
                </td>
                <td style="width:100px"></td>
            </tr>
        </table>
    </center>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using AJAX to send data to our database. I've added some feedback
I'm looking into using Jquery to replace some of our native Coldfusion ajax functionality.
I am using Ajax POST method to send data, but i am not able
I would like to send data using $.ajax like this: $.ajax({'url': 'my.php', 'type': 'POST',
I am using $.ajax function to send json data to serverside function. var jsonObjects
I would like to send data using the jQuery Ajax API: var myData =
I am using ajax to send data into a django view with data coming
I am using jquery ajax to send data from a <textarea name=comments> . to
I am using the following call to send data back to the server: $.ajax({
how can I create map to send it like post-data, using ajax? For exmaple,

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.