The use of Weboffice ActiveX plug-ins in point-of-poly is only required to install the corresponding Weboffice.ocx plugin in IE to enable online document editing. For non-ie such as Google, Firefox browser is somewhat different, if you want to be compatible with Google and Firefox need to adopt standard NPAPI development plug-in, the specific need to do the following steps:
1, please install the following link address of the plug-in package
Current version: http://code.google.com/p/ff-activex-host/downloads/detail?name=ffactivex-setup-r39.exe&can=2&q=
2. After installing the plug-in package, adjust the loading Weboffice container.
[Java]View PlainCopy
- <object id="Control"
- Type="Application/x-itst-activex"
- align= "baseline" border="0"
- Width= "95%" height="600px "
- Clsid="{e77e049b-23fc-4db8-b756-60529a35fad5}"
- event_notifyctrlready="Notifyctrlready"
- event_notifytoolbarclick="Notifytoolbarclick"
- event_notifywordevent="Notifywordevent" >
- </object>
Three of these events are as follows:
[Java]View PlainCopy
- Initialization controls can initialize loaded documents, and set Weboffice related properties
- function Notifyctrlready () {
- Document.all.Control.LoadOriginalFile ("E:\\worddemo\\demo\\demo\\doc\\model.doc", "Doc");
- }
- Listening for events on the toolbar
- function Notifytoolbarclick (ID) {
- //eventinfo.innertext = "Notifytoolbarclick event occurred, toolbar ID:" + ID;
- }
- Listen for Word action events
- function Notifywordevent (name) {
- //eventinfo.innertext = "Notifywordevent event occurred, Word event name:" + name;
- }
3. How to make the editing page load different object objects depending on the browser?
This can be considered using the if IE browser conditional comments to achieve the purpose of loading different object objects. The specific core load code is as follows:
[HTML]View PlainCopy
- <!--[if IE]>
- <object id= "WebOffice1" height="600px" width="95%" style="left:0px; top:0px; " classid="Clsid:e77e049b-23fc-4db8-b756-60529a35fad5"
- codebase="/ocx/weboffice.cab#v6,0,5,0">
- <param name="_extentx" value="6350" />
- <param name="_extenty" value="6350" />
- </Object>
- <! [endif]-->
- <!--[if! Ie]>--
- <object id="Control"
- type="Application/x-itst-activex"
- align= "baseline" border="0"
- width= "95%"height= "600px "
- clsid="{e77e049b-23fc-4db8-b756-60529a35fad5}"
- event_notifyctrlready="Notifyctrlready"
- event_notifytoolbarclick="Notifytoolbarclick"
- event_notifywordevent="notifywordevent">
- </Object>
- <!--<! [endif]-->
This set-up will allow weboffice compatible with a variety of egg-like browser to implement the document online operation.
http://www.stepday.com/topic/?613
How to make Dot poly weboffice online edit ActiveX plugin compatible with Firefox, Google, ie all kinds of browser