None of the links in the MuseScore teaser section work

• Oct 31, 2012 - 17:58
Type
musescore.org
Severity
S2 - Critical
Status
closed
Project

The links in the MuseScore teaser, http://musescore.org/en section resp. http://musescore.org/en/musescore-teaser ("Take a tour", "Other systems and platforms", "What's new in MuseScore 1.2", "Donate") don't work resp. they all link to musescore.exe. i.e. the download.
This is since a couple days. And with WinXP Pro SP3 and Win7-564, IE8 as well as FF13 and FF15


Comments

Not fixed here either - Windows 7, Safari 5.1.7. Main page, click the "Take a tour" link - result is the program tries to download. Same with "Other systems and platforms", "What's new in 1.2", and "Donate" - all go directly to download. I reloaded the page, no difference.

Status (old) active fixed

The Javascript which detects the OS of the user in order to set the right download link (exe, dmg, ...) was changing all the links in the teaser block. This is fixed now.

@Jojo we'll redesign the (English) site first and then push the changes forward towards the localized versions.

Title None of the links in the MuseScore teaser section work asp.net development

I just noticed that it's still not detected. The full revision string I have is 6.2.9200. What are the entries listed for Win7 and WinXP in the detection script as this might help determine exactly what's needed?

Title None of the links in the MuseScore teaser section work web links not working

Changed title back to something proper.

Title web links not working None of the links in the MuseScore teaser section work

JoJo and I changed the title at the same time.

Not really. It just complicates even further the webmasters job. When I am presented with only one download option, that's the one I take.

I added the Javascript to detect the OS version because people contacted me asking whether the software also runs on Windows 7. I assumed the same question is come regarding Windows 8. So I thought I could save people's time from having to send me emails.

I don't have Windows 8 to test the javascript code, so if anyone with a Windows 8 and Javascript skills could help me out, that would be great.

Run this Javascript code through your browsers console and pass me on the output: navigator.userAgent
I use Google Chrome to develop and Ctrl-I brings up the Console. See the attached screenshot.
console.png

Attachment Size
console.png 16.29 KB

I found my problem... Compatibility View was being enabled for _all_ sites. When I found where to turn it off the JavaScript detection worked and showed "Windows 8" in the dialog.

The output from a normal view when detection works is
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)"

When CV is enabled, this is what I see
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/6.0; .NET4.0E; .NET4.0C; InfoPath.3; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)"

I think I need to clarify my comments about "I found my problem". Viewing a site in "compatibility mode" is something you can do in all the later versions of IE and since this messes up the OS detection code (at least under Win8) it should still be fixed.

Hey schepers, I agree the OS detection should work also in CM. Unfortunately, I can't find the problem. This is the Javascript code I use and should be working fine normally, but apparently it doesn't in CM.

var _os_ = (function(){
var userAgent = navigator.userAgent.toLowerCase();
return {
isWin2K: /windows nt 5.0/.test(userAgent),
isXP: /windows nt 5.1/.test(userAgent),
isVista: /windows nt 6.0/.test(userAgent),
isWin7: /windows nt 6.1/.test(userAgent),
isWin8: /windows nt 6.2/.test(userAgent),
isMac105: /mac os x 10[_\.]5/.test(userAgent),
isMac106: /mac os x 10[_\.]6/.test(userAgent),
isMac107: /mac os x 10[_\.]7/.test(userAgent),
isMac108: /mac os x 10[_\.]8/.test(userAgent),
};
}());

It seems that in CM the script(s) don't run properly, on XP pro SP3 with IE8 in CM I get:

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3; .NET4.0C; .NET4.0E; BOIE8;ENUSMSCOM)
Zeitstempel: Fri, 9 Nov 2012 08:36:46 UTC

Meldung: Bezeichner, Zeichenfolge oder Zahl erwartet
Zeile: 671
Zeichen: 3
Code: 0
URI: http://musescore.org/sites/musescore.org/files/js/js_20072d282cd8ca07cf…

Meldung: 'jQuery' ist undefiniert
Zeile: 18
Zeichen: 1
Code: 0
URI: http://musescore.org/en

Meldung: 'Drupal' ist undefiniert
Zeile: 3
Zeichen: 1
Code: 0
URI: http://musescore.org/sites/musescore.org/files/js/js_a370ae857e609d7524…

Meldung: 'jQuery' ist undefiniert
Zeile: 353
Zeichen: 1
Code: 0
URI: http://musescore.org/en