Vacation Packages | AAA Club Alliance (2023)

, can name whatever */ TST.SearchWidget.create({ // jQuery Selector to inject TST content into (NOTE: existing content will be replaced) tag: '.tst-widget-default', // set of products; ['all'] will default to ['hotel', 'flight', 'car', 'activity'], order dependant on order in array //products: ['car', 'flight', 'hotel', 'cruise', 'vacation', 'activity', 'tour'], //products: ['car', 'hotel', 'flight', 'cruise', 'activity', 'tour', 'vacation'],products: ['car', 'hotel', 'flight', 'cruise', 'activity', 'tour'], extras: { autoComplete: true, datePicker: true }, //productOptions:{"vacations": {content: true}}, //added for custom tab content // set which tab (and associated content) is "active" or "selected" by default focus: tstWidgetFocus }); /* Customizable Widget Content **add

or div class/id to the inside of tag: '.tst-widget-default' div -

and make sure you change/add name to products: ['car', 'flight', 'hotel', 'cruise', 'vacation[s]', 'activity'], all other content populated in the tabs by TST api js */ /*$(".tst-widget-default").on("tst-widget-created", function(e) { var customContentDiv2 = $(e.widget).find(".vacations-section"); template2 = $("#myTemplate2"); customContentDiv2.append(template2.html()); });*/ $(".tst-widget-default").on("tst-widget-created", function(e) { $(e.widget).find(".tst-search-widget .search .tabs ul").addClass("nav nav-tabs travelagenttabs").attr("role","tablist"); $(e.widget).find(".tst-search-widget .search .tabs ul li").attr("role","presentation"); $(e.target).find(".tst-search-widget .search .tabs ul li:last-child").after('

  • Travel Insurance
  • '); $(e.target).find(".tst-search-widget .search .forms fieldset:last-child").after('

    Book a Travel Insurance

    '); $(e.widget).find(".tst-search-widget .search section fieldset form div input[type='text']").addClass("form-input") //if ($(e.widget).find(".tst-search-widget .search section fieldset form div").hasClass("grouped")) { //$(e.widget).find(".tst-search-widget .search section fieldset form div:first-child").addClass("row"); $(e.widget).find(".tst-search-widget .search section fieldset form div").removeClass("grouped").addClass("pull-left");//.css({"margin-right": "2%"});, "width": "49%" //} //$(e.widget).find(".tst-search-widget .search section fieldset form div.pull-left")[2].before("

    "); $(e.widget).find(".tst-search-widget .search section fieldset form div.search-btn, .tst-search-widget .search section fieldset div.tst-advanced-search").before("

    "); $(e.widget).find(".tst-search-widget .search section fieldset div.tst-advanced-search").addClass("pull-left"); $(e.widget).find(".tst-search-widget .search section fieldset form div.car-return-date, .tst-search-widget .search section fieldset form div.arrival").parent().before("

    "); //$(e.widget).find(".tst-search-widget .search section fieldset form > div").css("width","100%"); $(e.widget).find(".tst-search-widget .search section fieldset form div.car-promo-code").parent().css({"width":"100%"}); /* Cruise */ $(e.widget).find(".tst-search-widget .search section fieldset.cruise-section form div select").parent().before("

    "); /* Packages */ $(e.widget).find(".tst-search-widget .search section fieldset.vacation-section form div#fromLocation, .tst-search-widget .search section fieldset.vacation-section form div.pickup-date").before("

    "); $(e.target).find(".tst-search-widget .search section fieldset.vacation-section form div.vacation-package select option[value=fhc]").attr("selected",""); /* Flight */ /*$(e.widget).find("#flight-form > .num-people-grp > div.children-ages > select").attr("style","display:block");*/ /**** OMNITURE TRACKING TO LINKS AND SUBMIT BUTTONS ***/ $('.tst-search-widget fieldset').each(function(){ var fieldsetClass = $(this).attr('class'), fieldsetClassSub = fieldsetClass.substring(0,fieldsetClass.indexOf('-')), advancedSearchText = $(this).find(".tst-advanced-search").empty(); $(this).find(".tst-advanced-search").html("Advanced Search<\/a>");//$(this).find(".tst-advanced-search").html("

    Advanced Search<\/a>"); //$(this).find(".search-btn button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_" + fieldsetClassSub + "')"); //$(this).find("div[class*='promo-code'] > label > a").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_" + fieldsetClassSub + "-promo-code')");$(this).find("form").submit(function() { if($('.tst-error-message').css('display') != 'block') { ClickTrackingEvent("TSTwidget_mhp_" + fieldsetClassSub + ""); } else {} }); }); /**** END OMNITURE TRACKING ***/ $(e.widget).find(".tst-search-widget").parent().parent().parent().addClass("YUPYUP"); }); } }; /* This code is required to put the widget on your page. */ (function(win, doc) { var wScript = doc.createElement('script'), scriptNode = doc.getElementsByTagName('script')[0], scriptNode2 = doc.getElementsByTagName('script')[3]; win.TST.config = { // the TST domain host: 'booktravel.cluballiance.aaa.com' } wScript.type = 'text/javascript'; wScript.async = true; wScript.src = ('https:' == doc.location.protocol ? 'https://' : 'http://') + win.TST.config.host + '/web-services/assets/javascript/tst-api.min.js'; ///web-services/assets/javascripts/dist/tst-api.min.js scriptNode.parentNode.insertBefore(wScript, scriptNode); wScript.src = ('https:' == doc.location.protocol ? 'https://' : 'http://') + win.TST.config.host + '/web-services/assets/javascripts/lib/jquery/jquery-min.js'; scriptNode2.parentNode.insertBefore(wScript, scriptNode2); })(window, document); jQuery.browser = {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; } })();//window.onload = function() {document.onreadystatechange = function(e) {$(".tst-search-widget h1").each(function () {var tstH1 = $(this)[0];var tstH2 = document.createElement('h2');tstH2.innerHTML = tstH1.innerHTML;tstH1.parentNode.replaceChild(tstH2, tstH1);});$('.tst-search-widget fieldset').each(function(){//car tabif($(this)[0].className.indexOf('car-section') > -1){$(this).find("> header.title-and-logo > img.hertzlogo").attr('alt', 'hertz logo');$(this).find("> #car-form > div.pickup-location > div.pickup-location-input > input[name=pickUpLocation]").before('car pickup location');$(this).find("> #car-form > div.pickup-location > div.pickup-location-input > input[name=pickUpLocation]").attr('id', 'car-pickup-location');$(this).find("> #car-form > div.dropoff-location > div.dropoff-location-input > input[name=dropOffLocation]").before('car dropoff location');$(this).find("> #car-form > div.dropoff-location > div.dropoff-location-input > input[name=dropOffLocation]").attr('id', 'car-dropoff-location');$(this).find("> #car-form > div.grouped > div.pickup-date > input[name=pickUp]").before(' #car-form > div.grouped > div.pickup-date > input[name=pickUp]")[0].id + '" class="visuallyhidden">car pick up date');$(this).find("> #car-form > div.grouped > div.pickup-time > select[name=pickUpTime]").before('car pick up time');$(this).find("> #car-form > div.grouped > div.pickup-time > select[name=pickUpTime]").attr('id', 'car-pickup-time');$(this).find("> #car-form > div.grouped > div.car-return-date > input[name=dropOff]").before(' #car-form > div.grouped > div.car-return-date > input[name=dropOff]")[0].id + '" class="visuallyhidden">car return date');$(this).find("> #car-form > div.grouped > div.car-return-time > select[name=dropOffTime]").before('car return date');$(this).find("> #car-form > div.grouped > div.car-return-time > select[name=dropOffTime]").attr('id', 'car-return-time');$(this).find("> #car-form > div.grouped > div.car-promo-code> input[name=promoCode]").before('car promo code');//$(this).find("> #car-form > div.grouped > div.car-promo-code > input[name=promoCode]").attr('id', 'car-promo-code');$(this).find("> #car-form > div.grouped > div.car-promo-code > label > a").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_car-promo-code')");$(this).find("> #car-form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_car-search')");}//hotel tabif($(this)[0].className.indexOf('hotel-section') > -1){$(this).find("> #hotel-form > div.location > div.location-input > input[name=location]").before('hotel location');$(this).find("> #hotel-form > div.location > div.location-input > input[name=location]").attr('id', 'hotel-location');$(this).find("> #hotel-form > div.grouped > div.checkIn-date > input[name=checkIn]").before(' #hotel-form > div.grouped > div.checkIn-date > input[name=checkIn]")[0].id + '" class="visuallyhidden">hotel checkIn date');$(this).find("> #hotel-form > div.grouped > div.checkOut-date > input[name=checkOut]").before(' #hotel-form > div.grouped > div.checkOut-date > input[name=checkOut]")[0].id + '" class="visuallyhidden">hotel checkOut date');$(this).find("> #hotel-form > #text-to-tags > div > input[id=freeFormEntry]").before('free Form Entry');$(this).find("> #vacation-rentals-form > div.location > div.location-input > input[name=location]").before('hotel vacation rentals form location');$(this).find("> #vacation-rentals-form > div.location > div.location-input > input[name=location]").attr('id', 'hotel-vacation-rentals-form-location');$(this).find("> #vacation-rentals-form > div.grouped > div.checkIn-date > input[name=checkIn]").before(' #vacation-rentals-form > div.grouped > div.checkIn-date > input[name=checkIn]")[0].id + '" class="visuallyhidden">hotel vacation rentals checkIn date');$(this).find("> #vacation-rentals-form > div.grouped > div.checkOut-date > input[name=checkOut]").before(' #vacation-rentals-form > div.grouped > div.checkOut-date > input[name=checkOut]")[0].id + '" class="visuallyhidden">hotel vacation rentals checkOut date');$(this).find("> #hotel-form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_hotel-search')");}//flight tabif($(this)[0].className.indexOf('flight-section') > -1){$(this).find("> #flight-form > div.grouped > div.departure > input[name=f]").before('flight from');$(this).find("> #flight-form > div.grouped > div.departure > input[name=f]").attr('id', 'flight-from');$(this).find("> #flight-form > div.grouped > div.arrival > input[name=t]").before('flight to');$(this).find("> #flight-form > div.grouped > div.arrival > input[name=t]").attr('id', 'flight-to');$(this).find("> #flight-form > div.grouped > div.departure-date > input[name=d]").before(' #flight-form > div.grouped > div.departure-date > input[name=d]")[0].id + '" class="visuallyhidden">flight departure date leave');$(this).find("> #flight-form > div.grouped > div.flight-return-date > input[name=r]").before(' #flight-form > div.grouped > div.flight-return-date > input[name=r]")[0].id + '" class="visuallyhidden">flight return date leave');$(this).find("> #flight-form > div.grouped > div.adults > select[name=a]").before('flight adults');$(this).find("> #flight-form > div.grouped > div.adults > select[name=a]").attr('id', 'flight-adults');$(this).find("> #flight-form > div.grouped > div.children-ages > select").before('flight children ages');$(this).find("> #flight-form > div.grouped > div.children-ages > select").attr('id', 'flight-children-ages');$(this).find("> #flight-form > div.grouped > div.seniors > select[name=s]").before('flight seniors');$(this).find("> #flight-form > div.grouped > div.seniors > select[name=s]").attr('id', 'flight-seniors');$(this).find("> #flight-form > div.grouped > div.children > select[name=m]").before('flight children');$(this).find("> #flight-form > div.grouped > div.children > select[name=m]").attr('id', 'flight-children');$(this).find("> #flight-form > div.tst-advanced-search > a.advanced-search-link").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_flight_advanced-search')");$(this).find("> #flight-form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_flight-search')");}//cruise tabif($(this)[0].className.indexOf('cruise-section') > -1){$(this).find("> form > div > select[id=cruiseDeparturePort]").before('cruise Departure Port');$(this).find("> form > div > select[id=cruiseDestination]").before('cruise Destination');$(this).find("> form > div > select[id=cruiseMonth]").before('cruise Month');$(this).find("> form > div > select[id=cruiseLine]").before('cruise Line');$(this).find("> form > div > select[id=cruiseShip]").before('cruise Ship');$(this).find("> form > div > select[id=cruiseDays]").before('cruise Days');$(this).find("> form > div > select[id=cruisePromotion]").before('cruise Promotion');$(this).find("> form > div > select[id=cruiseTravelers]").before('cruise Travelers');$(this).find("> form > div.tst-advanced-search > a.advanced-search-link").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_cruise_advanced-search')");$(this).find("> form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_cruise-search')");}//things to do tabif($(this)[0].className.indexOf('activity-section') > -1){$(this).find("> form > div.location > input").before('activity location');$(this).find("> form > div.location > input").attr('id', 'activity-location');$(this).find("> form > div.monthYear > select[name=monthYear]").before('activity month Year');$(this).find("> form > div.monthYear > select[name=monthYear]").attr('id', 'activity-monthYear');$(this).find("> form > div.tst-advanced-search > a.advanced-search-link").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_activity_advanced-search')");$(this).find("> form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_activity-search')");}//guided tour tabif($(this)[0].className.indexOf('tour-section') > -1){$(this).find("> form > div.location > select[name=destination]").before('tour destination');$(this).find("> form > div.location > select[name=destination]").attr('id', 'tour-destination');$(this).find("> form > div.grouped > div.month > select[name=month]").before('tour month');$(this).find("> form > div.grouped > div.month > select[name=month]").attr('id', 'tour-month');$(this).find("> form > div.grouped > div.duration > select[name=duration]").before('tour duration');$(this).find("> form > div.grouped > div.duration > select[name=duration]").attr('id', 'tour-duration');$(this).find("> form > div.grouped > div.keyword > input[name=keyword]").before('tour keyword');$(this).find("> form > div.grouped > div.keyword > input[name=keyword]").attr('id', 'tour-keyword');$(this).find("> form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_tour-search')");}//bundle & save tabif($(this)[0].className.indexOf('vacation-section') > -1){$(this).find("> form > div.vacation-package > select[name=st]").before('vacation package');$(this).find("> form > div.vacation-package > select[name=st]").attr('id', 'vacation-section-package');$(this).find("> form > #fromLocation > input[name=f]").before('vacation section pickup location');$(this).find("> form > #fromLocation > input[name=f]").attr('id', 'vacation-section-pickup-location');$(this).find("> form > #toLocation > input[name=t]").before('vacation section toLocationLabel');$(this).find("> form > #toLocation > input[name=t]").attr('id', 'vacation-section-toLocationLabel');$(this).find("> form > div.pickup-date > input[name=d]").before(' form > div.pickup-date > input[name=d]")[0].id + '" class="visuallyhidden">vacation section date leave');$(this).find("> form > div.car-return-date > input[name=r]").before(' form > div.car-return-date > input[name=r]")[0].id + '" class="visuallyhidden">flight departure date return');$(this).find("> form > div.grouped > div.adults > select[name=a]").before('vacation adults');$(this).find("> form > div.grouped > div.adults > select[name=a]").attr('id', 'vacation-section-adults');$(this).find("> form > div.text-input > select[name=pickUpTime_selection]").before('vacation pickUpTime selection');$(this).find("> form > div.text-input > select[name=pickUpTime_selection]").attr('id', 'vacation-section-pickUpTime-selection');$(this).find("> form > div.text-input > select[name=dropOffTime_selection]").before('vacation dropOffTime selection');$(this).find("> form > div.text-input > select[name=dropOffTime_selection]").attr('id', 'vacation-section-dropOffTime-selection');$(this).find("> form > div.grouped > div.seniors > select[name=s]").before('vacation seniors');$(this).find("> form > div.grouped > div.seniors > select[name=s]").attr('id', 'vacation-section-seniors');$(this).find("> form > div.grouped > div.children > select[name=m]").before('vacation children');$(this).find("> form > div.grouped > div.children > select[name=m]").attr('id', 'vacation-section-children');$(this).find("> form > div.grouped > div.children-ages > select.child-age-dropdown-tpl").before('vacation children ages');$(this).find("> form > div.grouped > div.children-ages > select.child-age-dropdown-tpl").attr('id', 'vacation-section-children-ages');$(this).find("> form > div.tst-advanced-search > a.advanced-search-link").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_vacation_advanced-search')");$(this).find("> form > div.search-btn > button").attr("onclick", "ClickTrackingEvent('TSTwidget_mhp_vacation-search')");}});};
    Top Articles
    Latest Posts
    Article information

    Author: Prof. Nancy Dach

    Last Updated: 01/02/2023

    Views: 6465

    Rating: 4.7 / 5 (77 voted)

    Reviews: 84% of readers found this page helpful

    Author information

    Name: Prof. Nancy Dach

    Birthday: 1993-08-23

    Address: 569 Waelchi Ports, South Blainebury, LA 11589

    Phone: +9958996486049

    Job: Sales Manager

    Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

    Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.