Embedding pages |
Top Previous Next |
If a page is marked External from the page properties, anyone can access the page without having an account. There are two ways this can be done: Direct access: You can jump directly to a particular page by putting the page ID in the URL. For example: www.daqconnect.com/daq/page.do?id=20BAC465-94B5-4A0E-866A-9F64DC3826C2
where 20BAC465-94B5-4A0E-866A-9F64DC3826C2 is the page ID. Replace "serverAddress" with the URL for your particular server which you can see in the address bar of your browser. These vary depending on which server your account is placed on. If a page is external, anyone can access the page this way. So, you could create a link from your regular website to jump directly to a page for public viewing. Anyone accessing it will not be able to edit the page, nor switch pages unless you provide controls to change pages. Embedded page: You can also embed a page or part of a page on another website. To do so, you need to add just a couple lines to your web page: In your <head> block, preferably after all your stylesheets, put: <script type="text/javascript" src="http://www.daqconnect.com/daq/dc.do?id=ABCDAAB9-2BB1-44EC-8C54-7E71514A1F7B"></script>
Replace the id (ABCDAAB9-2BB1-44EC-8C54-7E71514A1F7B)with the id for your page. In your <body> block, create a <div> wherever you want the page. Size and style the <div> as you desire. Note that you MUST provide a size for the div. It won't automatically size because the controls don't affect the flow of the html. You will need to give the div the unique id 'dcui-mainContent'. Leave the div empty unless you want content underneath. The div looks like: <div id="dcui-mainContent" class = "hp_dc" style = "width: 800px; height: 800px;"></div>
Note that you can only embed one page per web page. The embedded pages, however, are fully functioning in run mode, and so, for example, Click events of controls will function inside an embedded page. |