Created
June 3, 2012 17:43
-
-
Save vinniewrote/2864336 to your computer and use it in GitHub Desktop.
fitment group call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wfYear = $('#wfVehEnterYear').val(), | |
wfMake = $('#wfVehEnterMake').val(), | |
wfModel = $('#wfVehEnterModel').val(), | |
wfBody = $('#wfVehEnterTrim').val(), | |
wfNumDoors = $('#wfVehEnterDoors').val(), | |
fgColors = $('#wfVehColor'), | |
geckoUrl = encodeURI('http://sears.carpronetwork.com/tools.asmx/getVehicle'); | |
var fgVehicleCall = $.ajax({ | |
url: geckoUrl, | |
data: { | |
Username : "\"sears\"", | |
Password : "\"SEARS34w3bs3rvic3s\"", | |
YearID: "\"2003\"", //'"' + wfYear + '"' | |
MakeName: "\"Volkswagen\"", //'"' + wfMake +'"' | |
ModelName: "\"Jetta\"", //'"' + wfModel + '"' | |
BodyTypeName: "\"Sedan\"", //'"' + wfBody + '"' | |
BodyNumDoors: "\"4\"", //'"' + wfNumDoors + '"' | |
Options: "\"\"", | |
format: "json" | |
}, | |
contentType: "application/json; charset=utf-8", | |
dataType: 'jsonp', | |
//add content to div | |
success: function (carLoad){ | |
fg.Colors.show('fast', hideLoadingGif); | |
fgColors.html(carLoad.d.Colors.ColorName); | |
// $(".wfCarImage").empty(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment