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

  • Home
  • SEARCH
  • 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 8612671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:41:07+00:00 2026-06-12T04:41:07+00:00

I have a peculiar issue which is giving me headaches… The following code works

  • 0

I have a peculiar issue which is giving me headaches… The following code works perfectly in Firefox but not in Safari on Mac OS.

I want to display a simple “Loading message” while files are being uploaded. So my page looks like this:

<!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
        <script>
            $(document).ready(function () {
                $('#upload').on('submit', function () {

                    $("#loading").fadeIn();

                });

            });
        </script>
    </head>

    <body>
        <p id="loading" style="display:none">UPLOADING...</p>


            <form name="upload" id="upload" method="post" action="upload.php" enctype="multipart/form-data">
                <input type='file' name='file[]' multiple/>
                <input type="submit" value="Upload..."/>
            </form>

    </body>
</html>

On Firefox, the “UPLOADING…” line shows up while the files are uploading before transfering me to upload.php. On Safari, the “UPLOADING…” line doesn’t show and it transfers me to upload.php once the files are uploaded.

If this is something not supported in Safari, how can I achieve exactly the same feature?

Thank you for your help!

  • 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-12T04:41:08+00:00Added an answer on June 12, 2026 at 4:41 am

    Ok, I got it working…

    Instead of a ‘submit’ button, I changed it by a ‘button’ with id=’send’. I modified the script to first show the p tag on click and then added the form submit in the callback like so:

    <script>
                $(document).ready(function () {
    
                    $("#send").click(function () {
    
                        $("#loading").fadeIn(function () {
                            $("#upload").submit();
                        });
    
                    });
    
                });
    </script>
    

    And it works in all browsers now. Tested in IE, FF, Chrome and Safari.

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

Sidebar

Related Questions

I have a very peculiar issue debugging some code. In the first iteration of
I have a very peculiar issue with Firefox and I've been unable to find
I am stuck with a peculiar issue here. I have a script that basically
I have a peculiar problem, which I think that a lot of other people
I have a work around for this problem, but I've been noticing some peculiar
I have a peculiar problem here. I want to extract some generic types, which
So very peculiar spring httpinvoker issue going on. I have a soap web service
A lot of functions in the Android source code have peculiar names ending with
I have this slightly peculiar situation, a boolean statement I have is giving me
I have a very peculiar problem:(not using web.config) DefaultFacebookApplication dfa=new DefaultFacebookApplication(); dfa.AppId = ...;

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.