Get your own customer support community
 

Using the Javascript API to make a document public at upload.

I'm not a programmer, so getting my site to use Vuzit the way I wanted took me ages to get right, but was great when I did. Then you implemented tighter security, and what I used no longer works the way I expect it to.

What I use is this:

<script type="text/javascript">
//<![CDATA[
// Called when the page is loaded.
function pageLoaded() {
vuzit.Base.apiKeySet("b4c7269c-cc85-8a56-b047-6480a6d6352f");
var viewer = vuzit.Viewer.fromUrl("http://www.uhs.sa.edu.au{file_link}", {});
viewer.setFullScreenUrl('http://vuzit.com/view?url=$[URL]');
viewer.display(document.getElementById("vuzit_viewer"), { zoom: 0, showFullScreen: true, showZooms: false });
}

vuzit.Event.observe(window, 'load', pageLoaded);
//]]>
</script>


This works for viewing, but when I click "Fullscreen" it tells me I haven't got permission. I also now have to manually set that the file is downloadable in the dashboard.

I've read another thread that mentioned that security can be set by the PHP and .NET APIs, but I can't find out if it's possible to do this with javascript. Please tell me if it's possible and what I might need to do to make my viewer work again. Unfortunately, while I was setting it up I had time to learn what I needed to make it work, but I no longer have time to fix it.

Thank you for your time and an otherwise fantastic product.
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium