Support Portal
Language
 
Home>Knowledge Base>Root>FAQ>AccuBook Booking Engine>How can i integrate the booking engine into my website
User Login
Username
Password
 
 Login
Information
Article ID254
Created On2/16/2009
Modified2/11/2011
Share With Others

How can i integrate the booking engine into my website

The Accubook Booking engine can be integrated into any website using javascript.

Use the following steps.

  • Include the following code int the HEAD on each page that you want the Availabilty Search to appear on and on the page that will show the booking form:

    You will need to change the following code slightly.

    update accubook_Business and accubook_Site with the information provided to you by AccuBook and update accubook_SearchPage to the filename of the page you want to display the booking form on. e.g.

    var accubook_Business="A Sample Hotel"; //provided by AccuBook
    var accubook_Site="A Sample Website"; //provided by AccuBook
    var accubook_SearchPage="bookonline.asp";

    <link rel="stylesheet" href="https://reservations.accubook.net/remote/accubook.css"/>
    <script type="text/javascript">
    var accubook_Business="Your AccuBook Business Name Here"; //provided by AccuBook
    var accubook_Site="Your AccuBook Site Name Here"; //provided by AccuBook
    var accubook_SearchPage="booknow.html"; // the filename in your website that will show the search results
    </script>
    <script type="text/javascript" src="https://reservations.accubook.net/remote/BookingEngine.ashx"></script>

  • Add the following code onto the page where you want the search form to appear

    <script type="text/javascript">

       writeAccuBookSearchForm();

    </script>
    <noscript>
    <!--
    Enable Javascript to book online.
    -->
    </noscript>

  • Add the following code on the page you want to display the booking form IFrame, this page should have the same name as the accubook_SearchPage setting you created in the HEAD of the page as described above.

    <script type="text/javascript">

    writeAccuBookIFrame();

    </script>
    <noscript>
    <!--
    Enable Javascript to book online.
    -->
    </noscript>

If you wish to display packages, you can link to the following address, which will display the packages available.
<accubokSsearchPage>?view=packages e.g. bookonline.asp?view=packages