How to make Dot poly weboffice online edit ActiveX plugin compatible with Firefox, Google, ie all kinds of browser

Source: Internet
Author: User

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
  1. <object id="Control"
  2. Type="Application/x-itst-activex"
  3. align= "baseline" border="0"
  4. Width= "95%" height="600px "
  5. Clsid="{e77e049b-23fc-4db8-b756-60529a35fad5}"
  6. event_notifyctrlready="Notifyctrlready"
  7. event_notifytoolbarclick="Notifytoolbarclick"
  8. event_notifywordevent="Notifywordevent" >
  9. </object>


Three of these events are as follows:

[Java]View PlainCopy
  1. Initialization controls can initialize loaded documents, and set Weboffice related properties
  2. function Notifyctrlready () {
  3. Document.all.Control.LoadOriginalFile ("E:\\worddemo\\demo\\demo\\doc\\model.doc", "Doc");
  4. }
  5. Listening for events on the toolbar
  6. function Notifytoolbarclick (ID) {
  7. //eventinfo.innertext = "Notifytoolbarclick event occurred, toolbar ID:" + ID;
  8. }
  9. Listen for Word action events
  10. function Notifywordevent (name) {
  11. //eventinfo.innertext = "Notifywordevent event occurred, Word event name:" + name;
  12. }

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
  1. <!--[if IE]>
  2. <object id= "WebOffice1" height="600px" width="95%" style="left:0px; top:0px; " classid="Clsid:e77e049b-23fc-4db8-b756-60529a35fad5"
  3. codebase="/ocx/weboffice.cab#v6,0,5,0">
  4. <param name="_extentx" value="6350" />
  5. <param name="_extenty" value="6350" />
  6. </Object>
  7. <! [endif]-->
  8. <!--[if! Ie]>--
  9. <object id="Control"
  10. type="Application/x-itst-activex"
  11. align= "baseline" border="0"
  12. width= "95%"height= "600px "
  13. clsid="{e77e049b-23fc-4db8-b756-60529a35fad5}"
  14. event_notifyctrlready="Notifyctrlready"
  15. event_notifytoolbarclick="Notifytoolbarclick"
  16. event_notifywordevent="notifywordevent">
  17. </Object>
  18. <!--<! [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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.