Skip to content

Instantly share code, notes, and snippets.

@vinniewrote
Created June 3, 2012 17:43
Show Gist options
  • Save vinniewrote/2864336 to your computer and use it in GitHub Desktop.
Save vinniewrote/2864336 to your computer and use it in GitHub Desktop.
fitment group call
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