Classic Car Insurance
Compare quotes from specialist classic insurance brands
Sell Your Classic Car For FREE
It's FREE to list your classic car on Honest John Classics and promote it to thousands of classic car buyers
Sell Your Classic Car For FREE
Browse by model
- Bedford CF
- Bedford HA
"); $('#resultsColumn').append("
"); }, 100); $.post('/cars-for-sale/search/', data) .done(function (result) { window.clearTimeout(loadingTimeout); if (result.filters != '') { $('#searchColumn').empty().append(result.filters); } else { $('#searchColumn .loading').remove(); } $('#resultsColumn').empty().append(result.results); $('.breadcrumb span').empty().append(result.breadcrumb); var h1Text = result.sectionTitle; $('.breadcrumb h3').text(h1Text); document.title = result.query + ' | Honest John'; if (document.getElementById("cfsFacets")) { if (filtersExpanded) { document.getElementById("cfsFacets").style.display = 'block'; $('#show-filters').empty().append('Hide filters '); } else { document.getElementById("cfsFacets").style.display = 'none'; $('#show-filters').empty().append('View all filter options '); } } prepareFeaturedResult(); if ($(window).scrollTop() > $('#resultsColumn').offset().top) { $('#resultsColumn').get(0).scrollIntoView(); } if (updateState) { window.history.pushState(data, document.title, result.url); } initFixedTop(); googletag.pubads().refresh([hj.dfp.adUnits['/9259737/InFeed'], hj.dfp.adUnits['/9259737/MPU_Mobile']]); }); }; $('body').on('click', '.create-deal-details', function () { $.trackEvent('Create deal', 'Open', 'Create deal explainer modal') $.featherlight($('.create-deal-modal'), {}); }); $('body').on('click', '.show-deals-button', function () { $('#createDeal').attr('checked', true); $.featherlight.close(); var name = changedField($('#createDeal').attr('name')); var data = $('#createDeal').closest('form').serialize() + '&change=' + name; if (validateSearch($('#createDeal').closest('form'))) { checkForStalePostcode(name); updateResults(data); $.trackEvent("Classics For Sale - Change Search", "None - " + name, data); } }); $('body').on('change', 'select.facet', function () { $(this).addClass('selected'); var name = changedField($(this).attr('name')); var data = $(this).closest('form').serialize() + '&change=' + name; if (validateSearch($(this).closest('form'))) { checkForStalePostcode(name); updateResults(data); $.trackEvent("Classics For Sale - Change Search", "None - " + name, data); } }); $('body').on('input', 'input#l', function () { var value = $(this).val(); if (value.match(/^[A-Z][A-Z]?[0-9][A-Z0-9]? *[0-9][A-Z][A-Z]$/i)) { var name = changedField($(this).attr('name')); var data = $(this).closest('form').serialize() + "&change=" + name; if (validateSearch($(this).closest('form'))) { if (isMobile) { updateResults(data); $.trackEvent("Classics For Sale - Change Search", "None - " + name, data); } else { $.trackEvent("Classics For Sale - Postcode entered", "None", data); window.postcodeStale = true; } } } }); $('body').on('change', ":checkbox[name='createDeal']", function () { var name = changedField($(this).attr('name')); var data = $(this).closest('form').serialize() + '&change=' + name; if (validateSearch($(this).closest('form'))) { checkForStalePostcode(name); updateResults(data); $.trackEvent("Classics For Sale - Change Search", "None - " + name, data); } } ); function checkForStalePostcode(name) { if (window.postcodeStale === true) { $.trackEvent("Classics For Sale - Postcode not submitted", "None - " + name, '-'); window.postcodeStale = false; } } $('body').on('change', 'select.sortOrder', function () { $('#searchColumn form #hidden-s').val($(this).val()); var data = $('#searchColumn form').serialize(); checkForStalePostcode('sort'); updateResults(data); $.trackEvent("Classics For Sale - Change Sort", "None", data); }); $('body').on('change', '.searchType input', function () { var data = $(this).closest('form').serialize(); updateResults(data); $.trackEvent("Classics For Sale - Change Search Type", "None", data); }); $('body').on('change', 'select#searchType', function () { $(this).addClass('selected'); var data = $(this).closest('form').serialize(); updateResults(data); $.trackEvent("Classics For Sale - Change Search Type", "None", data); }); $('body').on('submit', '#cfsFilters', function (event) { event.preventDefault(); var data = $(this).serialize(); if (validateSearch($(this))) { if (isMobile) { filtersExpanded = false; } if (window.postcodeStale === true) { $.trackEvent("Classics For Sale - Postcode submit", "None"); window.postcodeStale = false; } updateResults(data); $.trackEvent("Classics For Sale - Change Search", "None - submit", data); } else { $(this).closest('form').find('.missing')[0].scrollIntoView(); if ($('#filterToggle').length > 0) { window.scrollBy(0, -($('#filterToggle').position().top + $('#filterToggle').height() + 10)); } } }); $('body').on('click', '.pagination a', function (event) { event.preventDefault(); var data = $('#cfsFilters').serialize() + '&pg=' + $(this).data("pg"); checkForStalePostcode('page'); updateResults(data); $.trackEvent("Classics For Sale - Change Page", "None", data); }); $('body').on('click', 'a.saveSearch, a.forgetSearch', function (event) { event.preventDefault(); var action = $(this).hasClass('saveSearch') ? 'Save' : 'Forget'; $.requireLogin('cfs-saveSearch', $(this), function () { var data = $('#cfsFilters').serialize(); $.post('/carsforsale/' + action + 'Search/', data) .done(function (result) { updateResults(data); $.trackEvent("Classics For Sale - " + action + " Search", "None", data); }); }); }); $('body').on('click', '#filterToggle a', function (event) { event.preventDefault(); var $container = $('#filterToggle').parent(); var offset = $container.offset().top - $('#page_header').height(); if ($('#cfsFilters').is(':hidden')) { $('#cfsFilters').slideDown(); $(this).empty().append('Hide filters '); if (window.scrollY > offset) { window.scrollTo(0, offset); } } else { $('#cfsFilters').slideUp(); $(this).empty().append('Update your search '); } }); $('body').on('click', '#filterToggleNew a', function (event) { event.preventDefault(); var $container = $('#filterToggleNew').parent(); var offset = $container.offset().top - $('#page_header').height(); if (filtersExpanded === false) { filtersExpanded = true; $('#cfsFacets').slideDown(); $(this).empty().append('Hide filters '); if (window.scrollY > offset) { window.scrollTo(0, offset); } } else { filtersExpanded = false; $('#cfsFacets').slideUp(); $(this).empty().append('View all filter options '); } }); $('body').on('click', '.refine-text-links a', function (event) { event.preventDefault(); $.trackEventLink(this, "Classics For Sale - Refine link click", "None", this.href); }); history.replaceState($('#cfsFilters').serialize(), document.title, location.href); $(window).bind('popstate', function () { loadResults(history.state); }); }); function startCall(link) { var leadEvent = $(link).data("event"); $.trackSegment('Lead Start', Object.assign({label:'Lead Start', action:'Start', lead_type:'call_dealer', user_postcode:window.hj.postcode, leadSource:window.hj.leadSource}, leadEvent)); } function submitCall(phoneNumber, link, label) { var leadEvent = $(link).data("event"); $.trackSegment('Lead Submit', Object.assign({ label: 'Lead Submit', action: 'Submit', lead_type: 'call_dealer', user_postcode: window.hj.postcode, leadSource:window.hj.leadSource, phoneNumber: phoneNumber }, leadEvent)); $.trackFB('Lead', {}); } function startRequestCallback(link, offerId, distance) { window.leadEvent = $(link).data("event"); window.hj.leadModal.isCallback = true; window.hj.leadModal.updateOffer(offerId, distance); window.hj.leadModal.updateForm(); $.trackSegment('Lead Start', Object.assign({ label: 'Lead Start', action: 'Start', lead_type: 'request_callback', user_postcode: window.hj.postcode, leadSource:window.hj.leadSource }, window.leadEvent)); window.hj.leadModal.open(); } function changedField(name) { var d = {"l":"postcode","d":"distance"}; var safeName = name; if (name in d && d[name] != 'undefined') { return d[name]; } else { return safeName; } }