You are viewing limited content. For full access, please sign in.

Question

Question

WebLink iframe Options

asked on January 29, 2016

How can I add a WebLink document in an iframe but only display the document pages without the rest of the WebLink panes? I found this documentation about WebAccess and WebLink URLs but it didn't help with my particular question.

 

I made a screenshot to illustrate the only portion of the WebLink page I want to display in the iframe. I am using this iframe in the screenshot below: 

<iframe id="myframe" src="https://ourweblinksite/1/doc/123456/Page1.aspx" width="100%" height="600px"></iframe>

0 0

Answer

SELECTED ANSWER
replied on January 29, 2016

Perhaps you can create a custom URL parameter to use in your iframe src and then add javascript to DocView.aspx such that if it sees that parameter, it will perform the full screen button click.

In your iframe src, use something like

https://ourweblinksite/1/doc/123456/Page1.aspx?fs=1

In DocView.aspx, add the following before the closing body tag

<script type="text/javascript">
  var urlstring = window.location.href;
  var fullscreen = "fs=1";
  if (urlstring.indexOf(fullscreen) > -1) {
    $(document).ready(function() {document.getElementById("FullScreenButton").click()});
  }
</script>

See if something like that may work for you.

3 0
replied on February 3, 2016

That works great. Laserfiche Answers is awesome! Thank you.

0 0
replied on December 17, 2021

Can someone tell me how to accomplish this now as the Full Screen toggle is no longer a button?

0 0
replied on January 25, 2023

You ever get this figured out, Lexie?

0 0

Replies

replied on January 29, 2016

You can make some minor customizations to have the documents always show in full-screen mode, with the option to go back to full docviewer mode disable.

See this post for the details.

1 0
replied on January 29, 2016

Brianna, thank you for that information and it does work but it affects that entire WebLink site. I am looking for a solution that can be applied at the time the iframe loads in my Laserfiche Form. When users are using WebLink directly, I want it to behave normally and show all of the panes. Is this possible?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.