In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what is the use of NPAPI in TE. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
NPAPI, which refers to Netscape plug-in Application programming Interface (Netscape Plugin Application Programming Interface), is a calling channel through which external programs act as plug-ins and browsers to display web pages together. A plug-in is equivalent to an application running on a web page. For example, if you want to play music on a web page and use tags on a web page, the browser will automatically call Windows Media Player to run, such as pdf and so on. Also, it can be used to detect and launch client applications in browsers.
TE supports NPAPI after version 6.6, but for chrome v42 or above, the NPAPI plug-in is turned off by default, and Firefox 52 stops supporting all NPAPI plug-ins, so the TE secondary development of NPAPI is basically not used.
The official provides a simple web development based on NPAPI, which can also be supported in the lower versions of chrome and firefox. If you are interested, you can try it. Here is the detailed code:
Sample
Function LoadFly () {
Try {
Var sg = CreateSGObj ()
Sg.open ("fly address")
}
Catch (e) {
Alert (e)
}
}
/ / create an object for sgworld
Function CreateSGObj () {
Var obj = document.getElementById ("sgworld")
If (obj = = null) {
Obj = document.createElement ('object')
Obj.setAttribute ("name", "sgworld")
Obj.setAttribute ("id", "sgworld")
Obj.setAttribute ("type", "application/x-skyline")
Obj.setAttribute ("clsid", "{3A4F9199 65a8-11d5-85c1-0001023952c1}")
Document.body.appendChild (obj)
}
Return obj
}
/ / the definition of window is somewhat different from that on IE.
/ / the definition of window is somewhat different from that on IE.
This is the end of this article on "what is the use of NPAPI in TE?". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.