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:
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.
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.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Hi Josh,
I appreciate your feedback and comments, and I'm sorry that it appears you got burned by our decisions which change how our system functions. We constantly struggle with ease-of-use and security. We initially were focused more on ease-of-use, and as we've matured security has become more important for the majority of our clients.
1) I can confirm that you cannot set a document to be download-able with the Javascript API (anymore). You can currently only do this with the Web Service APIs and associated Libraries.
2) I can also confirm that the full-screen functionality no longer works as you pointed out.
In both of these cases, we initially made the default action provide the most privileges and now we ensure that it's essentially the least privileges. However, we could add additional parameters that would solve your problem which, I admit, we neglected when we made these changes.
I've created a case for your inquiry about the Downloadable with a very high priority. The implementation of this should be simple, and we'll try to get this done ASAP.
The full-screen functionality redirected the end-user to a page on vuzit.com. I don't believe we will allow Vuzit documents to be publicly viewable on the vuzit.com website ever again due to security concerns. We have some ideas for doing this differently, but I don't expect a solution in the near future.
There is a workaround you could use to get the full-screen link back, but it would involve hosting the full-screen Vuzit viewer on your own website. I imagine this would be very similar code to the page you have already created, only it uses a full-screen Vuzit viewer (URL to sample code is below). Then change the value of the viewer.setFullScreenUrl() function to point to your newly created page that displays the same page within a full-screen window.
http://vuzit.com/developer/example_vi...
If you have any other questions on the implementation, rationale, or just general comments, then please let us know. Thanks again, Josh -Chris
I’m grateful
The company says
this answers the question
-
Inappropriate?Josh, have you looked at this support request?: http://gsfn.us/t/bs8l
I explained in some detail how to create a full screen window. -
Inappropriate?Thank you Chris and Brent.
I've knocked something together that should suffice for full screen viewing, hosted on our own site, so that's fantastic, thank you for your help.
As for the downloading thing, all my documents are public, so I can just link directly to the file with HTML, but the page would just look nicer if I could incorporate the link into the viewer. Even a setting in my Dashboard that would let me set ALL documents uploaded as Downloadable would make a huge difference.
Anyway, that's a lot better so thank you for your time. I knew you guys would be on it pretty fast!
I’m awesomely happy
Loading Profile...



EMPLOYEE
EMPLOYEE