I have a particular problem that gives me headaches ... The following code works fine in Firefox, but not in Safari on Mac OS.
I want to display a simple βDownload messageβ while downloading files. 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>
In Firefox, the string "UPLOADING ..." appears while the files are downloading before transferring me to upload.php. In Safari, the string "UPLOADING ..." is not displayed, and it transfers me to upload.php after downloading the files.
If this is not supported in Safari, how can I achieve exactly the same function?
Thank you for your help!
source share