1. Some members were not receiving emails sent from XJbikes.com. For example: "Forgot your password?" function to reset your password would not send email to some members. I believe this has been resolved now. Please use "Contact Us" form (see page footer link) if you still have email issues. SnoSheriff

    Hello Guest. You have limited privileges and you can't "SEARCH" the forums. Please "Log In" or "Sign Up" for additional functionality. Click HERE to proceed.

XJ VIN Lookup

Discussion in 'XJ Technical Chat' started by TheCrazyGnat, Mar 1, 2017.

Tags:
  1. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    I have seen a few requests from newer members looking for help identifying their bike by the VIN number. I was feeling under the weather the other weekend and decided to make a VIN lookup tool since I have been working on learning Javascript. So, submitted for your approval: XJ VIN Lookup. It isn't much to look at right now, but I hope to work on that a little bit when I have the time. This is by no means a replacement for Chacal's incredibly thorough write up on XJ VINs here. Hopefully this will help some folks get a good start by at least knowing which year and model they have.

    There are some improvements that I hope to add in the future:
    - Pretty it up a bit
    - Actually validate the check digit instead of just spitting it back out
    - Utilize the serial number to further pin point the options of the selected bike. Currently, especially for the motorcycles manufactured for sale outside of North America can be a little vague.

    Once again, this is hopefully a good tool to get folks started, but if you really want to know all about your XJ, you'll have to actually have to do some reading (gasp).
     
    nixadmin1 likes this.
  2. dkavanagh

    dkavanagh Well-Known Member Premium Member

    Messages:
    1,318
    Likes Received:
    584
    Trophy Points:
    113
    Location:
    Rochester, NY
    Worked well for my VIN. As a programmer, I was wondering what you used to put that together? I see lots of overhead in there for something relatively simple. Not bashing, just figure you used some set of tools that added lots of stuff you didn't need and I'm curious.
     
  3. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    You are absolutely right. The tools that came with the domain (Gandi Site) require that I use one of their templates, and I can't seem to find a way to edit that html. I had to embed the script I had created into one of their widgets. Ideally, I would have just uploaded the html and JavaScript I made and it would have been a very simple form, but that isn't an option with Gandi. Eventually I'd like to really dig in to this stuff, but it's just in bits and pieces now.

    And no offense taken, I am always open to criticism.
     
    Stumplifter likes this.
  4. chacal

    chacal Moderator Moderator Supporting Vendor Premium Member

    Messages:
    9,125
    Likes Received:
    1,956
    Trophy Points:
    113
    Location:
    The room where it happened
    Sadly, that info is not contained within the VIN number...........
     
  5. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    Sorry, I misspoke there. What I would like to do is check the model ID code to the serial number instead of just using the frame ID.
     
  6. chacal

    chacal Moderator Moderator Supporting Vendor Premium Member

    Messages:
    9,125
    Likes Received:
    1,956
    Trophy Points:
    113
    Location:
    The room where it happened
    I'm not exactly sure what you are saying here, but, if you wan tto "translate" the Frame ID (such as 22T) to the Model ID code, that'sdoable via a look-up table, but............be aware that 99% of the time, the frame ID and the model ID codes are one and the same. It's only with some Euro-land bikes (and later model XJ900's, XJ600's, etc.) where the frame ID and model ID differ significantly (mainly due to the introduction of many MODELS that were somewhat tailored (specific) to certain markets (i.e. France) that were slightly different from another markets bike, and thus the need for a different MODEL ID, while such bikes of course still used the same underlying frame (and thus shared the same FRAME ID).

    The only North American model where there is a frame ID and model ID difference is the XJ750 Midnight Maxim, as it obviously shared the same FRAME with a regular XJ750 Maxim, but being a Midnight "model", had a unique MODEL ID code.
     
  7. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    Sorry for being unclear. Yes, what you describe is what I am looking to do. I hadn't even considered it initially as I only started with the north American bikes. I know it isn't critical, but I'd like this to be thorough where possible and, as I mentioned this is a much a learning experience for me as it is a small contribution to the community here.
     
  8. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    The check digit is now being validated so you will be advised wherever you have the correct one or not.

    Coming soon: shorty VINs!
     
  9. TheCrazyGnat

    TheCrazyGnat Well-Known Member

    Messages:
    684
    Likes Received:
    323
    Trophy Points:
    63
    Location:
    Central PA
    We now have Shorty VIN to full VIN capabilities! Feel free to give it a shot and let me know if you run into any issues. I'll be doing some small updates here and there, but I've pretty much accomplished what I have set out to do. This was a great learning experience, and hopefully this helps someone out a little. Enjoy!
     
  10. wgul

    wgul Active Member

    Messages:
    230
    Likes Received:
    56
    Trophy Points:
    28
    Location:
    Boston
    Looks like it gave me the wrong long vin

    Shorty. 5n8007547

    Gave me;
    JYA5K5005BA007547


    Should be;

    Jya5n8002ca007547
     
  11. XJ550H

    XJ550H Well-Known Member Premium Member

    Messages:
    13,199
    Likes Received:
    3,861
    Trophy Points:
    113
    Location:
    Great North Woods
  12. wgul

    wgul Active Member

    Messages:
    230
    Likes Received:
    56
    Trophy Points:
    28
    Location:
    Boston
    Here's a shot of what I get ??
     

    Attached Files:

  13. XJ550H

    XJ550H Well-Known Member Premium Member

    Messages:
    13,199
    Likes Received:
    3,861
    Trophy Points:
    113
    Location:
    Great North Woods
    try refreshing the screen before entering the vin . the number you get is for a 550

    I am still getting correct number based on your short vin
     
  14. wgul

    wgul Active Member

    Messages:
    230
    Likes Received:
    56
    Trophy Points:
    28
    Location:
    Boston
    Yeah it must be
    must be
    a cache issue because I used a different iOS browser and it worked right this time. Thanks for the tip
     

Share This Page