The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> VIN Decoding API
Chris619
post Dec 2 2016, 05:24 PM
Post #1


Newbie
*

Group: Members
Posts: 10
Joined: 2-December 16
Member No.: 24,951



I'm trying to create an internal VIN Decoding website that pulls data from an external site. I'm a newbee so please dont tear me apart with negative comments smile.gif I have the link to the API, i have the API key but the results i get after entering VIN is in JSON format.

Link Example:

https://api.mywebsite.com/api/vehicle/vins/...p;api_key=mykey

First question is, how do I trigger the submit button to request decode of the vin entered in the text box, into the link example shown above. The only field that will change on the link will be the VIN which in this case is represented by 4T1BK1EB6DU056165.

CODE
<input id="id1" type="vin" max="17">
<button onclick="myFunction()">Submit</button>

And once I get the response in JSON, how do I display the code with styling in html? I tried the following code but no results

CODE
function setup() {
loadJSON("https://api.mywebsite.com/api/vehicle/vins/4T1BK1EB6DU056165?&fmt=json&api_key=mykey", gotData, 'jsonp);


Thanks any help you can give...

blink.gif

This post has been edited by Chris619: Dec 2 2016, 05:27 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Chris619   VIN Decoding API   Dec 2 2016, 05:24 PM
pandy   Not as newbie as we (I'm shamelessly assuming ...   Dec 2 2016, 05:40 PM
Chris619   Not as newbie as we (I'm shamelessly assuming...   Dec 2 2016, 05:59 PM
CharlesEF   The link you posted doesn't work, I get a ...   Dec 2 2016, 05:44 PM
pandy   It's a dummy link (check the domain name). The...   Dec 2 2016, 05:54 PM
Chris619   The link you posted doesn't work, I get a ...   Dec 2 2016, 06:02 PM
CharlesEF   As pandy just said, its a dummy link and its only...   Dec 2 2016, 06:26 PM
Chris619   Let me just make it clear to everyone, all the cod...   Dec 2 2016, 06:04 PM
pandy   Well, I have no experience with that. I don't ...   Dec 2 2016, 06:15 PM
Chris619   Alright peeps, here is my code that I'm using....   Dec 5 2016, 05:49 PM
CharlesEF   First, your HTML is invalid, I did fix some spelli...   Dec 5 2016, 08:50 PM
Chris619   First, your HTML is invalid, I did fix some spell...   Dec 13 2016, 06:16 PM
Chris619   CharlesEF, I thank you for this great help... Look...   Dec 6 2016, 10:51 AM
pandy   this API connection i'm doing is completely f...   Dec 6 2016, 09:34 PM
CharlesEF   Well, you need to be careful with w3schools also. ...   Dec 6 2016, 07:25 PM
CharlesEF   I'm sure you need to use AJAX for this. The f...   Dec 14 2016, 04:53 PM
CharlesEF   You haven't posted any javascript code yet but...   Dec 14 2016, 07:27 PM
CharlesEF   I don't know if you're going to come back ...   Jan 6 2017, 02:17 PM
Chris619   I'm here to stay... :D   Jan 6 2017, 03:14 PM
CharlesEF   I'm here to stay... :D Great, let me know h...   Jan 6 2017, 04:40 PM
Chris619   Its great!, but for me its too much data fetch...   Jan 6 2017, 04:46 PM
CharlesEF   Since you want things in a certain order then you ...   Jan 6 2017, 05:17 PM
Chris619   CHARLES, do you take contract work? we are current...   Jan 19 2017, 05:57 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th March 2024 - 09:16 PM