Just wanted to give public thanks and appreciation to a new member called Sonic who is obviously a committed webhead and Audi S2 fan. He spotted the bugs I introduced to my clunky attempts at Javascript and utterly re-wrote the decoder. It lives again at http://s2central.net/vindecoder.html - sincere thanks to Sonic for that and welcome to the forum.
Now its not working perfectly yet - cos of my logic - not out of anything Sonic did wrong. I need to tweak it to support the RS2 VIN and theres doubtless lots of cars I don't cover. Hopefully I wont break the code again
Another thing is I want to capture the correct 'TYPE' variants for the various chassis/models - like you know how we have Type 85, 89, B3, B4 etc etc - I've never found a site on the 'net that clearly defines all of these... I know there are some experts on this forum that can start me off here.
Below is a snippet of the vin decoder for the models that I currrently know of - if anyone can post info with the correct vehicle TYPE codes for these it would be great. I'm sure there's mistakes and typos in there so any updates are greatly appreciated
Theres a prize for the 1st person to get me the VIN for an R8 !
Thanks,
Paul
if (decode.typeCode == '80') {
decode.type = 'Type 80 Unknown';
} else if (decode.typeCode == '81') {
decode.type = 'Type 81 Unknown';
} else if (decode.typeCode == '82') {
decode.type = 'Type 82 Unknown';
} else if (decode.typeCode == '83') {
decode.type = 'Type 83 Unknown';
} else if (decode.typeCode == '84') {
decode.type = 'Type 84 Unknown';
} else if (decode.typeCode == '85') {
decode.type = 'Series 2 80 Coupe and UR quattro, 1980 - 1991';
} else if (decode.typeCode == '86') {
decode.type = 'Audi 50, 10/74 - 7/78';
} else if (decode.typeCode == '87') {
decode.type = 'Series 2 80/90 Saloon, 1980 - 1986';
} else if (decode.typeCode == '88') {
decode.type = 'Type 88 Unknown';
} else if (decode.typeCode == '89') {
decode.type = 'Series 3 80/90 Saloon, 9/86 - 9/91';
} else if (decode.typeCode == '8A') {
decode.type = 'Series 3 80/90 Saloon, 9/86 - 9/91';
} else if (decode.typeCode == '8B') {
decode.type = 'Series 3/4 Coupe, 1989 - 12/95';
} else if (decode.typeCode == '8C') {
decode.type = 'Series 3/4 80/90 Saloon & Avant';
} else if (decode.typeCode == '8D') {
decode.type = 'Series 1 A4 Saloon & Avant, 11/94 - 11/00';
} else if (decode.typeCode == '8E') {
decode.type = 'Series 2 A4 Saloon & Avant, 11/00 - ....';
} else if (decode.typeCode == '8F') {
decode.type = 'Type Unknown';
} else if (decode.typeCode == '8G') {
decode.type = '80 Cabriolet';
} else if (decode.typeCode == '8L') {
decode.type = 'A3 (1996 - ....)';
} else if (decode.typeCode == '8N') {
decode.type = 'TT (1998 - ....)';
} else if (decode.typeCode == '8Z') {
decode.type = 'A2 (1999 - ....)';
} else if (decode.typeCode == '42') {
decode.type = 'Series 1 100 & Coupe, 12/63 - 8/76 ???';
} else if (decode.typeCode == '43') {
decode.type = 'Series 2 100/200 Saloon & Avant, 8/76 - 9/82';
} else if (decode.typeCode == '44') {
decode.type = 'Series 3 100/200 Saloon & Avant, 9/82 - 11/90 (Also some V8\'s from 10/88 ?)';
} else if (decode.typeCode == '4A') {
decode.type = 'Series 4 100 (UrA6), 11/90 - 4/97';
} else if (decode.typeCode == '4B') {
decode.type = 'A6, 4/97 - ....';
} else if (decode.typeCode == '4C') {
decode.type = 'V8, 10/88 - 3/94';
} else if (decode.typeCode == '4D') {
decode.type = 'A8, 3/94 - ....';
Now its not working perfectly yet - cos of my logic - not out of anything Sonic did wrong. I need to tweak it to support the RS2 VIN and theres doubtless lots of cars I don't cover. Hopefully I wont break the code again
Another thing is I want to capture the correct 'TYPE' variants for the various chassis/models - like you know how we have Type 85, 89, B3, B4 etc etc - I've never found a site on the 'net that clearly defines all of these... I know there are some experts on this forum that can start me off here.
Below is a snippet of the vin decoder for the models that I currrently know of - if anyone can post info with the correct vehicle TYPE codes for these it would be great. I'm sure there's mistakes and typos in there so any updates are greatly appreciated

Theres a prize for the 1st person to get me the VIN for an R8 !
Thanks,
Paul
if (decode.typeCode == '80') {
decode.type = 'Type 80 Unknown';
} else if (decode.typeCode == '81') {
decode.type = 'Type 81 Unknown';
} else if (decode.typeCode == '82') {
decode.type = 'Type 82 Unknown';
} else if (decode.typeCode == '83') {
decode.type = 'Type 83 Unknown';
} else if (decode.typeCode == '84') {
decode.type = 'Type 84 Unknown';
} else if (decode.typeCode == '85') {
decode.type = 'Series 2 80 Coupe and UR quattro, 1980 - 1991';
} else if (decode.typeCode == '86') {
decode.type = 'Audi 50, 10/74 - 7/78';
} else if (decode.typeCode == '87') {
decode.type = 'Series 2 80/90 Saloon, 1980 - 1986';
} else if (decode.typeCode == '88') {
decode.type = 'Type 88 Unknown';
} else if (decode.typeCode == '89') {
decode.type = 'Series 3 80/90 Saloon, 9/86 - 9/91';
} else if (decode.typeCode == '8A') {
decode.type = 'Series 3 80/90 Saloon, 9/86 - 9/91';
} else if (decode.typeCode == '8B') {
decode.type = 'Series 3/4 Coupe, 1989 - 12/95';
} else if (decode.typeCode == '8C') {
decode.type = 'Series 3/4 80/90 Saloon & Avant';
} else if (decode.typeCode == '8D') {
decode.type = 'Series 1 A4 Saloon & Avant, 11/94 - 11/00';
} else if (decode.typeCode == '8E') {
decode.type = 'Series 2 A4 Saloon & Avant, 11/00 - ....';
} else if (decode.typeCode == '8F') {
decode.type = 'Type Unknown';
} else if (decode.typeCode == '8G') {
decode.type = '80 Cabriolet';
} else if (decode.typeCode == '8L') {
decode.type = 'A3 (1996 - ....)';
} else if (decode.typeCode == '8N') {
decode.type = 'TT (1998 - ....)';
} else if (decode.typeCode == '8Z') {
decode.type = 'A2 (1999 - ....)';
} else if (decode.typeCode == '42') {
decode.type = 'Series 1 100 & Coupe, 12/63 - 8/76 ???';
} else if (decode.typeCode == '43') {
decode.type = 'Series 2 100/200 Saloon & Avant, 8/76 - 9/82';
} else if (decode.typeCode == '44') {
decode.type = 'Series 3 100/200 Saloon & Avant, 9/82 - 11/90 (Also some V8\'s from 10/88 ?)';
} else if (decode.typeCode == '4A') {
decode.type = 'Series 4 100 (UrA6), 11/90 - 4/97';
} else if (decode.typeCode == '4B') {
decode.type = 'A6, 4/97 - ....';
} else if (decode.typeCode == '4C') {
decode.type = 'V8, 10/88 - 3/94';
} else if (decode.typeCode == '4D') {
decode.type = 'A8, 3/94 - ....';

to me.
Comment