Monday, 19 August 2013

Google Chrome Extension - Open in iFrame instead of Fullscreen

Google Chrome Extension - Open in iFrame instead of Fullscreen

So I am currently working on a local web-based application. Here are the
facts:
I am using the CSS page transitions found here:
http://tympanus.net/Development/PageTransitions/ Due to this, each "page"
of my application is contained in it's own div in a single file.
Example:
<div class="pt-page pt-page-1">
<!-- Page 1 content goes here ... -->
</div>
<div class="pt-page pt-page-2">
<!-- Page 2 content goes here ... -->
</div>
...etc
The client wants to be able to view Powerpoint (.ppt) files directly on
the web browser. To attempt a quick and dirty solution, I have installed
the Chrome extension "Chrome Office Viewer"
https://chrome.google.com/webstore/detail/chrome-office-viewer-beta/gbkeegbaiigmenfmjfclcdgdpimamgkj?hl=en
to each machine(this application is going to be isolated to just four
machines that will be using Chrome for the application, so usability isn't
an issue here)
What I WANT to have happen is to link to the .ppt file in an iFrame in one
of my <div> pages as seen above, so when the user clicks on a link, the
page transitions and the slides can be viewed within the iFrame due to the
Chrome Extension capabilitiy.
What CURRENTLY happens is that as soon as the application loads, the page
redirects to the browser FROM the original application page to a seperate
page to view the .ppt file. I would like this to be done inside of the
<iframe> as mentioned earlier instead of an entire page redirect...
Is this possible or am I limited due to the construction of the Chrome
Extension itself? I can always have the client save their .ppt as images
and then display those within a <div> page, but I figured the Chrome
Extension would be the quickest solution. Any ideas? Thanks in advance.

No comments:

Post a Comment