NaN error in IE and Edge browsers

grigory

Member
Jan 31, 2016
41
0
66
Hello!
I've got a small JS-based music player on my homepage in its upper-left corner (just above the logo). And it works fine in all browsers, except IE and Edge. In those it shows NaN where the song's total time is supposed to be after the page loads. I'll attach a printscreen, so you can see it clearly. But if you try to load my site in FF or Chrome, then it's fine! The URL as you can see is https://apostasia.ru
 

Attachments

  • 1.jpg
    1.jpg
    653.3 KB · Views: 4

purbeast0

No Lifer
Sep 13, 2001
52,896
5,778
126
Not sure how to get to the dev tools in IE and Edge, but in Chrome and FF it is F12.

Try to open the dev tools and look at the console, and there should is probably a javascript error in there.

If you find it, copy/paste it here.
 

grigory

Member
Jan 31, 2016
41
0
66
Thanks! I see... But I have no clue what to do with all of it :-(
Like how to solve the player's problem.
 

mxnerd

Diamond Member
Jul 6, 2007
6,799
1,101
126
You have to read through Google result see if you can find anything useful/informative.

Ca't help here. Never wrote any javascript programs.
 

purbeast0

No Lifer
Sep 13, 2001
52,896
5,778
126
Just FYI, a CSS file has nothing to do with this error.

Again, there is nothing anyone can really help you with until you give us more information such as the information I was asking for.
 

grigory

Member
Jan 31, 2016
41
0
66
Solved that NaN issue in a music player! It was due to a gzip compression on the server. Had to cancel it just for mp3 files by putting this code in root's .htaccess file

PHP:
<IfModule mod_headers.c>
    <FilesMatch "\.mp3$">
        RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]
    </FilesMatch>
</IfModule>

This thread can be closed now!