I just thought I will post this here, since others may find this useful.
Although the driver comparison pages may be a bit old by now, many drivers Zaph compared are still available, so it's nice to have his detailed comparison data.
However, there is a problem in the Javascript code. Notice the "undefined" word under "previous... toggle... next". That is supposed to show the name of the driver and it's price.
Now when you just want to use these previous and next buttons (very convenient), you will get lost and have no idea which driver data is displayed, since it always says "undefined".
The reason for this is an error in the Javscript code, namely that `name` is used as the array variable name for driver descriptions.
If you want to fix this, it's fairly simple, even if you don't understand any code. Just download the page (Ctrl+S) and make sure it says "Web page, complete" when downloading. Find the downloaded page and open it in a plain text editor (e.g. Notepad on windows, Text on OSX). Look for the script, which is between the <script> and </script> tags. There is a long list of name variables, e.g.:
name[1] = "Audio Technology 18H520613SD ($525)";
The `name` is the problem. Now change all occurrences of `name` in the script to something else, e.g. `description`. These occur in the long list, just above it (var name = ...) and in the first function (setSlideNum). Save the changes and open the page you just modified in your browser, and now the proper description should show up.
This sounds more complicated than it is... trust me 🙂
I was going to tell Zaph about it, but there is no email link... I could post the fixed results on my server, but I would not want to do this without his permission. Unless Zaph chimes in, you will have download the page and fix the code yourself.
By the way: I don't have Internet Explorer, maybe his page works fine in that browser, it does not in Firefox or Chrome however.
Although the driver comparison pages may be a bit old by now, many drivers Zaph compared are still available, so it's nice to have his detailed comparison data.
However, there is a problem in the Javascript code. Notice the "undefined" word under "previous... toggle... next". That is supposed to show the name of the driver and it's price.
Now when you just want to use these previous and next buttons (very convenient), you will get lost and have no idea which driver data is displayed, since it always says "undefined".
The reason for this is an error in the Javscript code, namely that `name` is used as the array variable name for driver descriptions.
If you want to fix this, it's fairly simple, even if you don't understand any code. Just download the page (Ctrl+S) and make sure it says "Web page, complete" when downloading. Find the downloaded page and open it in a plain text editor (e.g. Notepad on windows, Text on OSX). Look for the script, which is between the <script> and </script> tags. There is a long list of name variables, e.g.:
name[1] = "Audio Technology 18H520613SD ($525)";
The `name` is the problem. Now change all occurrences of `name` in the script to something else, e.g. `description`. These occur in the long list, just above it (var name = ...) and in the first function (setSlideNum). Save the changes and open the page you just modified in your browser, and now the proper description should show up.
This sounds more complicated than it is... trust me 🙂
I was going to tell Zaph about it, but there is no email link... I could post the fixed results on my server, but I would not want to do this without his permission. Unless Zaph chimes in, you will have download the page and fix the code yourself.
By the way: I don't have Internet Explorer, maybe his page works fine in that browser, it does not in Firefox or Chrome however.