Skip to content

Instantly share code, notes, and snippets.

@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinancePluginNewVehicleRequiredParameters.xml
Created July 16, 2012 14:18
Finance Plugin - New Vehicle Required Parameters
vehicle: { type: 'TYPE',
identifierType: 'IDENTIFIER_TYPE',
identifier: 'IDENTIFIER',
isNew: IS_NEW,
cashPrice: 'CASH_PRICE',
imageUrl: 'IMAGE_URL',
linkBackUrl: 'LINK_BACK_URL'
}
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinacePluginCallingThePlugin.xml
Created July 16, 2012 14:16
Finace Plugin - Calling The Plugin
...
<body onload="loadPlugin()">
...
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinancePluginPluginOptions.xml
Last active October 7, 2015 06:48
Finance Plugin - Plugin Options
<html>
<head>
...
function loadPlugin() {
var pluginParameters = {
pluginContentDivId: 'PLUGIN_DIV_ID',
vehicle: {
type: 'TYPE',
identifierType: 'IDENTIFIER_TYPE',
identifier: 'IDENTIFIER',
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinancePluginInitialisingThePlugin.xml
Last active October 7, 2015 06:48
Finance Plugin - Initialising The Plugin
<html>
<head>
...
function loadPlugin() {
var pluginParameters = {
pluginContentDivId: 'PLUGIN_DIV_ID',
vehicle: {
...
},
deposit: { defaultValue: 'DEFAULT_VALUE' },
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinancePluginDisplayingThePlugin.xml
Created July 16, 2012 14:11
Finance Plugin - Displaying The Plugin
<body>
<div id="ELEMENT_ID"></div>
</body>
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / FinancePluginIncludingTheDefaultStyling.xml
Created July 16, 2012 14:10
Finance Plugin - Including The Default Styling
<html>
<head>
...
<link href="https://services.codeweavers.net/v1/css/Plugin" rel="stylesheet" type="text/css" />
...
</head>
</html>
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / gist:3122914
Last active October 7, 2015 06:48
Finance Plugin - Including The Plugin
<html>
<head>
<script type="text/javascript" src="https://services.codeweavers.net/v2/script/FinancePlugin?key=YOUR_API_KEY"></script>
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / PluginBasicNewVehicleExample.xml
Last active October 7, 2015 06:48
Finance Plugin - Basic New Vehicle Example
<html>
<head>
<script type="text/javascript" src="https://services.codeweavers.net/v2/script/FinancePlugin?key=YOUR_API_KEY"></script>
<script type='text/javascript'>
function loadPlugin() {
codeweavers.main({ // Required - object - The function the initialise the plugin
pluginContentDivId: 'PLUGIN_DIV_ID', // Required - string - The id of the element that the plugin will be injected into.
vehicle: { // Required - object - The vehicle details for the calculation.
type: 'car', // Required - string - The type of vehicle. Either; car, lcv or bike.
identifier: '57294', // Required - string - The vehicle identifier for this vehicle.
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / ExamplePaymentSearchForQuotes.asp
Created July 9, 2012 16:10
Payment Search For Quotes written in ASP
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ClassicASPClient</title>
</head>
<body>
<h1>Classic ASP Example Client</h1>
@cox-auto-inc-codeweavers
cox-auto-inc-codeweavers / ExamplePaymentSearchForStockIdentifiers.asp
Created July 9, 2012 15:38
Payment Search For Stock Identifiers written in ASP
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ClassicASPClient</title>
</head>
<body>
<h1>Classic ASP Example Client</h1>