Implement Customer-Interface

Here is a PHP example of how to implement the customer interface on your own website.

Example:

<?php
	$lineid = $_GET["lineid"]; /* Get Line-ID from Query Ex.: http://your.website/customer/index.php?lineid=00YYXXCCVVGGFFWWUUOOPPKKLLZZ9987*/
?>

<iframe id="xiframe_2" width="100%" height="800px" src="https://xtream-editor.com/en/cc/edit/<?php echo $lineid; ?>" frameBorder="0" scrolling="no"></iframe>
<script type="text/javascript"> var eventMethod = window.addEventListener ? "addEventListener" : "attachEvent"; var eventer = window[eventMethod]; var messageEvent = eventMethod == "attachEvent" ? "onmessage" : "message"; eventer(messageEvent,function(e) { if (e.data.action == 'resize'){ document.getElementById("xiframe_2").height = e.data.height; } },false); </script>
© Copyright 2016-2017 | Xtream Editor