Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding iframe and javascript

Go to End



Community Member, 1 Post

2 July 2014 at 5:25pm

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=""></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">
var ibOperatorID = 'bluemoon'; // Your OperatorID
var ibPropID = 8458; // Your PropertyID

// The public URL pointing at your SeekomMessageAgent.html file
var ibMsgAgentURL = '';

var ibOtherParams = {};
/* Other params to pass to the booking page, format
like: ibOtherParams.NAME = 'VALUE'; */
// = 'NC008'; // Theme
// ibOtherParams.rmtype = '123,456,789'; // Specific rooms only
// = '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'ibex-booking-page');

// END EDITING (no need to edit any further)