Skip to content
wvanbergen edited this page Sep 13, 2010 · 14 revisions

First, you have to include the Floorplanner Javascript class into your page. Floorplanner uses the swfobject library, which must be included as well.

<script type="text/javascript" src="http://beta.floorplanner.com/javascripts/floorplanner/swfobject_20.js"></script>
<script type="text/javascript" src="http://beta.floorplanner.com/javascripts/floorplanner/floorplanner.js"></script>

Now make, sure to add an element to your page in which the Floorplanner application should be loaded. To load Floorplanner, you will have to create a Floorplanner-object, make it point to your project and embed in into the HTML element. This can be done with the following code.

First, you have to include the Floorplanner Javascript class into your page. Floorplanner uses the swfobject library, which must be included as well.

<script type="text/javascript">
<!--
window.onload = function() {
  var fp = new Floorplanner({project_id: your_project_id }); // Create the Floorplanner object
  fp.embed('div_name'); // Load floorplanner in the element with ID "div_name"
}
-->
</script>

Clone this wiki locally