Hi, I'm trying to add a booking system to a customer's SilverStripe web site (2.4.5) I want to add the following code to the header of the page <script type="text/javascript" src="http://bluemoonhavelock.co.nz/admin/ibex-booking-load.js"></script> I can't see how to do this. I have inserted it into the body
When I then paste the following as plain text the booking screens are not working, the page is blank, ie no template.
Does SilverStripe support javascript? Any other clues?
<iframe id="ibex-booking-page" name="" onload="iBexFrame.SetHeight(this);" src="" width="100%" height="600px" scrolling="auto" frameborder="no" style="border: none; overflow-y: visible"></iframe>
<script type="text/javascript">
// EDIT HERE
var ibOperatorID = 'bluemoon'; // Your OperatorID
var ibPropID = 8458; // Your PropertyID
// The public URL pointing at your SeekomMessageAgent.html file
var ibMsgAgentURL = 'http://bluemoonhavelock.co.nz/assets/ibex-message-agent.html';
var ibOtherParams = {};
/* Other params to pass to the booking page, format
like: ibOtherParams.NAME = 'VALUE'; */
// ibOtherParams.th = 'NC008'; // Theme
// ibOtherParams.rmtype = '123,456,789'; // Specific rooms only
// ibOtherParams.ru = 'mycompany'; // Sales Channe / Company ID
// ibOtherParams.ata = 'true'; // Sales Channe / Company ID
// This line activates the booking page. The passed in parameter must match the ID of the iFrame above
iBexBookingFrameController.run('ibex-booking-page');
// END EDITING (no need to edit any further)
</script>
Thanks
Craig