Skip to content

Instantly share code, notes, and snippets.

@asabaylus

asabaylus/foo.html

Created Apr 28, 2017
Embed
What would you like to do?
birst
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script>
<script src="https://sde.birst.com/js/birst_embed.js" type="text/javascript"></script>
<script type="text/javascript">
var ssoUrl = 'https://sde.birst.com/TokenGenerator.aspx?birst.username=birstforward2016@birst.com&birst.ssopassword=wVn4lZIoEx81nj7BsdC1OJ3TsGdkJF2N&birst.spaceId=6760e6ce-413c-4f41-9b90-6d9906158299';
var params = '&birst.module=newDashboards&birst.embedded=true&birst.dashboard=Sales%20Analysis&birst.page=Summary';
function ssoPost( params ) {
$.post( ssoUrl, {}, function( data ) {
var opts = { width: '100%', height: '800', iframeSrc: 'https://sde.birst.com/SSO.aspx?birst.SSOToken=' + data + params };
BirstConfig.create("embedded-container", opts);
} );
}
ssoPost( params );
</script>
</head>
<body>
<img height="120" width="100%" src="https://s3.amazonaws.com/birstSE/ImagesForDemos/BirstBanner.jpg"></img>
<br/><br/>
<div id="embedded-container"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment