How can I use ThinkFree Viewer Extensions to view files on other web sites?
ThinkFree Viewer Extensions allow you to
view documents on other web sites by simply right clicking a document link, then choosing the appropriate ThinkFree viewer application (Write for DOC files, Calc for XLS files, or Show for PPT files). For Firefox users, the menu
is context sensitive so the correct viewer application will automatically appear. For example,
in the scenario below, this Firefox user is opening a presentation file. The viewer
extension automatically shows the option to "View with ThinkFree Show."
File types supported are: DOC, RTF, TXT, XLS, CSV, PPT, and PPS.
Note: Due to limitations of Internet Explorer, all menu options will be shown and you
will need to choose the appropriate viewer.
ThinkFree Viewer Extension for Firefox is avaliable here. [ Install ]
ThinkFree Viewer Extension for Internet Explorer is available here. [ Download ]
The simple code snippet for ThinkFree Viewer Extensions passes the specific URL of the document, the Applet ID (WRITE_VIEWER /
CALC_VIEWER / SHOW_VIEWER), and the 'open new window' boolean parameters to a JSP page.
To see the actual JavaScript source code in XPI (Cross Platform Installer), modify the extension to .zip and unzip it. Below is a part of this JavaScript source code :
function viewWithTFOO()
var encoded=encodeURIComponent(gContextMenu.linkURL);
var menuItem = document.getElementById("beAliveMenuItem");
var app = getViewerAppID(tfModule);
openNewWindowWith('http://viewer.thinkfree.com/view.jsp?open='+encoded+"&app="+app,null, null);
}
|