Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

< back

iframe TicketShop examples

the iframe URL can be customised to alter the listing/display, the structure is as follows:

https://www.ticketsource.{domain}/ticketshop/{promoter_id}/{target}/{eventRef}
parameter description
domain The TicketSource territory domain (.co.uk, .eu or .us)
promoter_id The TicketSource promoter id for this ticket shop
target The a target attribute set for all links/buttons:
value description
_self Open links in the iframe itself (default)
_blank Open links in a new tab/window
_parent Open links in the frame above our iframe
_top Open links in the top frame (i.e. the current tab/window)
eventRef filter performances to only those with a matching event reference

Note

The examples below use a placeholder for your unique account identifier {promoter_id}, you can find the correct code within your TicketSource account and modify it from there to suit your needs

Default

<div id="embedTS_{promoter_id}" style="width:100%;"></div>
<script type="text/javascript">
  (function() {
    var el = document.createElement("script");
    el.src = "https://www.ticketsource.co.uk/ticketshop/{promoter_id}";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(el, s);
  })();
</script>

Target

Always open in a new tab:

<div id="embedTS_{promoter_id}" style="width:100%;"></div>
<script type="text/javascript">
  (function() {
    var el = document.createElement("script");
    el.src = "https://www.ticketsource.co.uk/ticketshop/{promoter_id}/_blank";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(el, s);
  })();
</script>

Filter to event

Only show events with the sample reference:

<div id="embedTS_{promoter_id}" style="width:100%;"></div>
<script type="text/javascript">
  (function() {
    var el = document.createElement("script");
    el.src = "https://www.ticketsource.co.uk/ticketshop/{promoter_id}/_self/sample";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(el, s);
  })();
</script>

Note

When specifying a later parameter such as eventRef all previous parameters must also be given (e.g. target is set to it's default of _self in the sample above)