CN103618699A - Method and device for calling component - Google Patents
Method and device for calling component Download PDFInfo
- Publication number
- CN103618699A CN103618699A CN201310560396.0A CN201310560396A CN103618699A CN 103618699 A CN103618699 A CN 103618699A CN 201310560396 A CN201310560396 A CN 201310560396A CN 103618699 A CN103618699 A CN 103618699A
- Authority
- CN
- China
- Prior art keywords
- component
- browser
- calling
- called
- format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000006243 chemical reaction Methods 0.000 claims abstract description 45
- 230000004044 response Effects 0.000 claims description 24
- 230000006870 function Effects 0.000 claims description 19
- 238000009434 installation Methods 0.000 claims description 10
- 238000004806 packaging method and process Methods 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims 2
- 238000004891 communication Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000011161 development Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to the technical field of communications, and discloses a method and device for calling a component. According to the scheme, a first browser conducts format conversion on a component calling instruction, and converts the format of the instruction into the format, wherein under the format, a second browser and the first browser support the same protocol, and the called component and the second browser support the same protocol; then the component is called, the format of the called component is converted according to the protocol supported by the first browser, the called component after the format conversion provides the corresponding function for a user, therefore, the aim that the user can call the component through the first browser is achieved, the component and the second browser support the same protocol, further, access is carried out on a network side, calling of the component which supports the same protocol with the second browser can be achieved without the second browser, and access on the network side is achieved. Therefore, the problems that in the prior art, when the network service is carried out, the complexity is higher, the consumed time is long, and the efficiency is lower are solved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for calling a component.
Background
At present, with the pace of life and the development of technology, more and more users use the internet to process business, for example, using internet banking to process business (such as internet payment and internet transaction), which not only saves the time for users to queue up in banks, but also can meet the demand of processing business at any time in 24 hours, so that the business is processed through the internet, especially the business processed through internet banking is more and more favored by people.
Because the online banking system uses ActiveX controls and the like during development, the controls can not be transplanted to browsers without IE kernels for use, and some controls are difficult to be normally called even among browsers with different versions of Internet Explorer (IE) kernels, therefore, in the current network service, the online banking payment service can only perform login payment through the browser of the IE kernel, that is, the server where the online banking payment service is located can only interact with the client of the browser which opens the IE kernel, and cannot interact with a client that opens a browser other than the IE kernel, for example, the corresponding browser of the internet bank a is a browser of the IE kernel, the client opening the browser of the IE kernel may interact with the server of the internet bank a, and the client opening the browser of the non-IE kernel may not interact with the server of the internet bank a.
At present, most of electronic malls can support various browsers, for example, browsers supporting IE kernels, and browsers supporting non-IE kernels such as Firefox, google Chrome, Safari, Opera and the like are also supported, but if a user selects a commodity through the Firefox browser and wants to perform network payment through an internet bank B, if the internet bank B does not support the Firefox browser, the user fails to perform network payment through the internet bank B based on the Firefox browser, and can only open the browser of the IE kernel supported by the internet bank B for payment, so that the interaction process is complex, consumes a long time, and has low efficiency.
Disclosure of Invention
The embodiment of the invention provides a method and a device for calling a component, which are used for solving the problems of higher complexity, long time consumption and lower efficiency in network service in the prior art.
The embodiment of the invention provides the following specific technical scheme:
a method of calling a component, comprising:
forwarding a page access request input by a user through a first browser to a network side, and receiving a response message returned by the network side, wherein the response message carries component identification information of a component required by page access by using the first browser, and the component is a plug-in or a control;
generating a component calling instruction according to the component identification information, and performing format conversion on the component calling instruction based on a protocol supported by a virtual second browser; wherein the second browser supports the same protocol as the component;
and calling the component based on the converted component calling instruction through the virtual second browser, and converting the format of the called component according to a protocol supported by the first browser, so that the called component after format conversion provides a corresponding function for the user.
An apparatus to invoke a component, comprising:
a response message receiving unit, configured to forward a page access request input by a user through a first browser to a network side, and receive a response message returned by the network side, where the response message carries component identification information of a component required when the first browser is used to access a page, and the component is a plug-in or a control;
the format conversion unit is used for generating a component calling instruction according to the component identification information and carrying out format conversion on the component calling instruction based on a protocol supported by a virtual second browser; wherein the second browser supports the same protocol as the component;
and the component calling unit is used for calling the component based on the converted component calling instruction through the virtual second browser, converting the format of the called component according to the protocol supported by the first browser and enabling the called component after the format conversion to provide a corresponding function for the user.
The invention has the following beneficial effects:
in the embodiment of the invention, a page access request input by a user through a first browser is forwarded to a network side, and a response message returned by the network side is received, wherein the response message carries component identification information of a component required by page access by the first browser, and the component is a plug-in or a control; generating a component calling instruction according to the component identification information, and performing format conversion on the component calling instruction based on a protocol supported by the virtual second browser; wherein the second browser and the component support the same protocol; through the virtual second browser, the component is called based on the converted component calling indication, format conversion is carried out on the called component according to the protocol supported by the first browser, and the called component after format conversion provides a corresponding function for the user.
Drawings
FIG. 1 is a flow diagram illustrating component invocation in an embodiment of the present invention;
FIG. 2 is an embodiment of component invocation in an embodiment of the present invention;
FIG. 3 is a diagram illustrating a functional structure of a component invocation device according to an embodiment of the present invention.
Detailed Description
In order to solve the problems of higher complexity, long time consumption and lower efficiency when network services are carried out in the prior art, in the embodiment of the invention, the first browser carries out format conversion on the component calling indication, converts the component calling indication into a format which supports the same protocol as that of the second browser (wherein the called component and the second browser support the same protocol), then calls the component, converts the format of the called component according to the protocol supported by the first browser, and enables the called component after format conversion to provide corresponding functions for a user, so that the user can call the component which supports the same protocol as that of the second browser through the first browser to further access the network side, and can call the component which supports the same protocol as that of the second browser without the second browser to further access the network side, therefore, the problems of high complexity, long time consumption and low efficiency in network service in the prior art are solved.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, in the embodiment of the present invention, a detailed flow of calling a component is as follows:
step 100: the method comprises the steps that a page access request input by a user through a first browser is forwarded to a network side, and a response message returned by the network side is received, wherein the response message carries component identification information of a component required by page access through the first browser, and the component is a plug-in or a control;
step 110: generating a component calling instruction according to the component identification information, and performing format conversion on the component calling instruction based on a protocol supported by the virtual second browser; wherein the second browser and the component support the same protocol;
step 120: and calling the component based on the converted component calling instruction through the virtual second browser, and performing format conversion on the called component according to a protocol supported by the first browser, so that the called component after format conversion provides a corresponding function for a user.
In the embodiment of the present invention, the component identification information may have a variety of forms, for example, may be Hypertext Markup Language (html) codes, or js (javascript) codes, or may also be Hypertext Preprocessor (php) codes, or asp (Active Server Pages) Language codes, which are just a few specific embodiments.
In the embodiment of the present invention, when the client where the first browser is located interacts with the network side, the client may be based on multiple protocols, for example, a Hypertext Transfer Protocol (HTTP), a Hypertext Transfer Protocol over Secure socket layer (HTTPs), and in practical applications, the client may also be based on other multiple protocols, which are not described in detail herein.
In the embodiment of the present invention, the called component may be various components, for example, an ActiveX control, or a Plugin, or an OLE (Object Linking and Embedding) control, or a COM control, and in practical applications, other components may also be used, which are not described in detail herein, and a page generated each time may include various components, so that when each component is called, the method of step 100 and step 120 may be adopted.
In the embodiment of the invention, the component calling indication generated according to the component identification information contains the related information of the called component, and then the component can be called according to the calling indication, for example, an ActiveX control needs to be called, the component calling indication contains the related information of the ActiveX control, and then the ActiveX control can be called according to the indication.
In the embodiment of the invention, the first browser and the second browser can be operating systems supporting the same system; alternatively, the first browser and the second browser may respectively support operating systems of different systems.
For example, the operating system supported by the first browser is Linux, and the operating system supported by the second browser is apple computer (Macintosh, Mac); or the mode of the operating system supported by both the first browser and the second browser is Windows. Therefore, in the component development process, different components do not need to be developed aiming at operating systems of different systems, compatible development of various interfaces does not need to be concerned, and only the functions of the components need to be concerned, so that the component development process is simplified, and meanwhile, the cost is saved.
In the embodiment of the present invention, there are various ways to perform format conversion on the component invocation indication based on the protocol supported by the virtual second browser, for example, the following ways may be adopted:
the interface packaging protocol indicated by the component calling is converted into the interface packaging protocol supported by the component based on the protocol supported by the virtual second browser, the message format indicated by the component calling is converted into the message format supported by the component based on the protocol supported by the virtual second browser, and the format of the data carried by the component calling indication is converted into the data format supported by the component based on the protocol supported by the virtual second browser.
The following takes the invocation of ActiveX control by browser in non-IE kernel as an example to explain the conversion process.
ActiveX is a browser-used control standard for the IE kernel, which is based on Microsoft's COM authoring model.
The format of the interface of the protocol supported by the browser of the non-IE kernel in the embodiment of the invention is as follows:
static bool
invoke(NPObject*obj,NPIdentifier methodName,const NPVariant*args,uint32_targCount,NPVariant*result);
wherein, the methodName comprises a method name;
const NPvariant args and uint32_ t argCount are parameters and the number of parameters;
NPVariant result represents the returned result.
In the embodiment of the invention, if the called actual control is an ActiveX control, the format of the interface of the protocol supported by the browser of the non-IE kernel is converted into the COM calling of the ActiveX, and the converted interface format is as follows:
STDMETHOD(Invoke)(
_In_DISPID dispidMember,
_In_REFIID riid,
_In_LCID lcid,
_In_WORD wFlags,
_In_DISPPARAMS*pdispparams,
_Out_opt_VARIANT*pvarResult,
_Out_opt_EXCEPINFO*pexcepinfo,
_Out_opt_UINT*puArgErr);
the dispidMember is a number representing a method and is obtained by a related method on GetIDsOfNames or a COM type library ITypeInfo; DISPPARAMS pdispparams is the parameter for calling the method, we need to build this parameter list from const NPvariant args and uin 32_ t argCount; DISPPARAMS is a complex type defined as follows:
typedef struct FARSTRUCT tagDISPPARAMS{
VARIANTARG FAR*rgvarg;
DISPID FAR*rgdispidNamedArgs;
unsigned int cArgs;
unsigned int cNamedArgs;
}DISPPARAMS;
we mainly use rgvarg and cangs, which correspond to the array of call parameters and the number of parameters. VARIANT _ pvarResult is the return result that needs to be converted back to NPVAriant _ Result for return to the NPAPI and ultimately to the page.
Thus, the core of the conversion between the data format supported by the non-IE kernel browser and the data format supported by the IE kernel browser is: core data structure supported by IE kernel browser
VARIANTARG/VARIANT format and core data structures supported by non-IE kernel browsers
The mapping relationship of the transformation of the NPVariant format is as follows:
conversion of NPVariant format to VARIANTARG/VARIANT format:
NPVariantType_Null<->NULL,
NPVariantType_Bool<->VT_BOOL,
NPVariantType_Int32<->VT_I4
NPVariantType_Double<->VT_R8
NPVariantType_String<->VT_BSTR
VARIANTARG/VARIANT Format to NPVAriant Format:
VT_EMPTY->NPVariantType_Void
VT_NULL->NPVariantType_Null
VT_LPSTR->NPVariantType_String
VT_BSTR->NPVariantType_String
VT_I1,VT_I2,VT_I4,VT_UI1,VT_UI2,VT_UI4,VT_UINT,VT_INT
->NPVariantType_Int32
VT_BOOL,VT_R4,VT_R8,VT_DATE->NPVariantType_Double
VT_VARIANT->NPVariantType
in practical applications, there are various ways to format the component invocation indication based on the protocol supported by the virtual second browser, and a detailed description thereof is omitted here.
In practical application, the first browser and the second browser may be browsers with different kernels, or browsers with the same kernel and different versions, where when the first browser and the second browser are browsers with different kernels, a process of performing format conversion on the component call instruction based on a protocol supported by the virtual second browser is higher in complexity than a process of performing format conversion on the component call instruction based on a protocol supported by the virtual second browser when the first browser and the second browser are browsers with the same kernel and different versions.
In the prior art, different components are developed for browsers supporting different executable code numbers, and in order to avoid the above problem, in the embodiment of the present invention, if the executable code number indicated by the component call and the executable code number supported by the second browser are determined, in performing format conversion on the component call indication based on a protocol supported by the virtual second browser, the executable code number indicated by the component call is converted from the executable code number supported by the first browser to the executable code number supported by the second browser, that is, the same component may be applied to both browsers supporting the same executable code number and browsers supporting different executable code numbers.
For example, the number of executable code bits supported by the first browser is 32 bits, and if the number of executable code bits supported by the called component is 64 bits, the 32-bit component calling indication is to be converted into a 64-bit component calling indication; similarly, if the executable code number supported by the first browser is 64 bits and the executable code number supported by the called component is 32 bits, the 64-bit component calling indication is to be converted into a 32-bit component calling indication.
For example, when a browser with 64-bit supported executable code number calls a 32-bit supported executable code number ActiveX control, the browser is implemented by using an independent 32-bit supported executable code number control container program, the program loads the 32-bit supported executable code number ActiveX control as a call container, and all input and output are transmitted between the browser with 64-bit supported executable code number and the 32-bit supported executable code number control container program through process-to-process communication.
In this embodiment of the present invention, after performing format conversion on the component invocation instruction based on the protocol supported by the virtual second browser, before performing invocation on the component based on the converted component invocation instruction through the virtual second browser, the following operations may be further included:
detecting whether the running state of the called component meets a preset condition or not;
and executing the calling operation when the running state of the called component is judged to meet the preset condition.
Wherein, whether the running state of the called component meets the preset condition or not comprises the following steps: whether the called component is correctly installed, whether the version number of the called component matches a preset version number (the preset version number can be specified by the network side), and whether the digital signature of the called component is complete (i.e. whether the called component is tampered or not) are detected.
That is, whether the running state of the called component meets the preset condition includes: whether the called component is correctly installed, whether the version number of the called component matches a preset version number, whether the digital signature of the called component is complete, or any combination thereof. .
In the embodiment of the present invention, when it is determined that the running state of the called component does not conform to the preset condition, for example, the called ActiveX control or Plugin is not installed, or the version number of the called ActiveX control or Plugin is lower than the specified minimum version number of the network side, the user may be notified, other repair components may be automatically started, and an installation package of the called component may also be downloaded.
The format of the installation package of the called component is various, for example, the installation package may be in an exe (executable program) format or a cab (compressed package) format, and in practical application, the format of the installation package may also be in other formats, which is not described in detail herein.
Further, in order to improve the security of the calling component, in the embodiment of the present invention, security check may be performed on the installation package of the downloaded calling component, for example, security check is performed in a HASH (HASH) algorithm manner, security check is performed in a digital signature manner, and the like.
Furthermore, in order to improve efficiency, in the embodiment of the present invention, after the installation package of the called component is downloaded, automatic installation may be performed without user operation. Of course, in practical applications, the installation may be performed according to the instruction of the user.
In the implementation of the invention, the returned message after calling the plug-in can be reported to the application layer in a first-level mode, and in order to receive the message in time, the returned message can be directly reported to the application layer by applying a transparent transmission mechanism instead of being uploaded in a first-level mode.
In the embodiment of the present invention, the format conversion of the called component according to the protocol supported by the first browser is similar to the format conversion of the component call indication based on the protocol supported by the virtual second browser, and therefore, the detailed description is omitted here.
In the embodiment of the present invention, in step 120, when the called component after format conversion provides corresponding functions for the user, because there are multiple components and the functions of the various components may be different, the following functions may be implemented, for example, the called component generates a complete page and presents the complete page to the user, or clears a local cache, or communicates with a U shield at the local end to implement digital signature, or may be used to implement human-computer interaction, and some components may implement security protection, virus scanning, and the like of an operating system layer.
For better understanding of the embodiment of the present invention, the following specific application scenarios are provided, and further detailed description is made with respect to the procedure of component invocation, specifically referring to fig. 2:
step 200: a page access request input by a user through a Firefo browser is forwarded to a network side;
the number of executable code bits supported by the Firefo browser is 64 bits.
Step 210: receiving a response message returned by the network side, wherein the response message carries component identification information of an ActiveX control required by the Firefox browser for page access;
in this step, the number of executable code bits of the required ActiveX control is 32 bits.
Step 220: generating a component calling instruction according to the component identification information; format conversion is carried out on the component calling indication based on a protocol supported by the virtual IE browser;
in this step, converting the format of the component call instruction based on the protocol supported by the virtual IE browser includes: the method comprises the steps of converting executable code bits indicated by component calling from 64 bits to 32 bits, converting an interface packaging protocol indicated by the component calling into an interface packaging protocol supported by an ActiveX control based on a protocol supported by a virtual IE browser, converting a data format indicated by the component calling into a data format supported by the ActiveX control, and converting a message format indicated by the component calling into a message format supported by the ActiveX control.
Step 230: determining that the detected ActiveX control is matched with a preset condition, and executing a calling operation;
step 240: the format-converted called component provides the corresponding function to the user.
Based on the above technical solution, referring to fig. 3, in the embodiment of the present invention, the data analysis apparatus includes a response message receiving unit 30, a format conversion unit 31, and a component invoking unit 32, wherein,
a response message receiving unit 30, configured to forward a page access request input by a user through a first browser to a network side, and receive a response message returned by the network side, where the response message carries component identification information of a component required when the page access is performed by using the first browser, and the component is a control or a plug-in;
a format conversion unit 31, configured to generate a component calling instruction according to the component identification information, and perform format conversion on the component calling instruction based on a protocol supported by the virtual second browser; wherein the second browser and the component support the same protocol;
and the component calling unit 32 is configured to call the component based on the converted component calling instruction through the virtual second browser, and perform format conversion on the called component according to a protocol supported by the first browser, so that the called component after format conversion provides a corresponding function to a user.
To sum up, in the embodiment of the present invention, the first browser performs format conversion on the component invocation indication to convert the component invocation indication into a format that supports the same protocol as the second browser (where the invoked component and the second browser support the same protocol), then invokes the component, and then converts the format of the invoked component according to the protocol supported by the first browser, so that the invoked component after format conversion provides a corresponding function to the user, so that the user can invoke the component that supports the same protocol as the second browser through the first browser, and then access the network side, and can invoke the component that supports the same protocol as the second browser through the second browser, and then access the network side without accessing the network side through the second browser The efficiency is low.
Meanwhile, because the first browser and the second browser support operating systems of different systems, or the first browser and the second browser are browsers with different kernels, or the first browser and the second browser are browsers with the same kernel and different versions, the scheme can be realized, so that different components do not need to be developed for operating systems of different systems, or different components do not need to be developed for browsers with different kernels, or different components are developed for browsers with the same kernel and different versions, and compatible development of various interfaces does not need to be concerned, only the functions of the components need to be concerned, development of the browser components is simplified, complexity of component calling is reduced, and efficiency of network service processing is improved.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.
Claims (20)
1. A method of calling a component, comprising:
forwarding a page access request input by a user through a first browser to a network side, and receiving a response message returned by the network side, wherein the response message carries component identification information of a component required by page access by using the first browser, and the component is a plug-in or a control;
generating a component calling instruction according to the component identification information, and performing format conversion on the component calling instruction based on a protocol supported by a virtual second browser; wherein the second browser supports the same protocol as the component;
and calling the component based on the converted component calling instruction through the virtual second browser, and converting the format of the called component according to a protocol supported by the first browser, so that the called component after format conversion provides a corresponding function for the user.
2. The method of claim 1, wherein the component identification information is hypertext markup language html language code, or js language code, or hypertext preprocessor php language code, or asp language code.
3. A method according to claim 1, wherein the called component is an ActiveX control, or a Plugin plug-in, or an object link and embedded OLE control, or a COM control.
4. The method of claim 1, wherein the first browser and the second browser both support operating systems of the same standard; or the first browser and the second browser respectively support operating systems of different systems.
5. The method according to any of claims 1-4, wherein format converting the component invocation indication based on a protocol supported by a virtual second browser, specifically comprises:
converting the interface packaging protocol indicated by the component calling into the interface packaging protocol supported by the component based on the protocol supported by the virtual second browser;
converting the message format indicated by the component calling into the message format supported by the component based on the protocol supported by the virtual second browser;
and converting the format of the data carried by the component calling indication into the data format supported by the component based on the protocol supported by the virtual second browser.
6. The method of claim 1, wherein if the number of executable code bits indicated by the component call and the number of executable code bits supported by the second browser are determined, then converting the number of executable code bits indicated by the component call from the number of executable code bits supported by the first browser to the number of executable code bits supported by the second browser in format converting the component call indication based on a protocol supported by the virtual second browser.
7. The method of claim 1, wherein after format converting the component invocation indication based on a protocol supported by a virtual second browser, prior to invoking the component based on the converted component invocation indication by the virtual second browser, further comprising:
detecting whether the running state of the called component meets a preset condition or not;
and executing calling operation when the running state of the called component is judged to meet the preset condition.
8. The method of claim 7, wherein whether the running state of the called component meets a preset condition comprises: whether the called component is correctly installed, whether the version number of the called component is matched with a preset version number, whether the digital signature of the called component is complete or any combination.
9. The method according to claim 7 or 8, characterized by sending a component download indication carrying the identifier of the called component to the network side when determining that the running state of the called component does not meet a preset condition; and are
And executing calling operation after downloading and installing the called component according to the component downloading address returned by the network side.
10. The method of claim 9, further comprising:
and carrying out security detection on the called component after installation.
11. An apparatus for invoking a component, comprising:
a response message receiving unit, configured to forward a page access request input by a user through a first browser to a network side, and receive a response message returned by the network side, where the response message carries component identification information of a component required when the first browser is used to access a page, and the component is a plug-in or a control;
the format conversion unit is used for generating a component calling instruction according to the component identification information and carrying out format conversion on the component calling instruction based on a protocol supported by a virtual second browser; wherein the second browser supports the same protocol as the component;
and the component calling unit is used for calling the component based on the converted component calling instruction through the virtual second browser, converting the format of the called component according to the protocol supported by the first browser and enabling the called component after the format conversion to provide a corresponding function for the user.
12. The apparatus according to claim 11, wherein the component identification information carried in the response message received by the response message receiving unit is html language code, or js language code, or php language code of a hypertext preprocessor, or asp language code of a dynamic server page.
13. The apparatus according to claim 11, wherein the component called by the component calling unit is an ActiveX control, or a Plugin plug-in, or an object link and embedded OLE control, or a COM control.
14. The apparatus according to claim 11, wherein the first browser to which the response message receiving unit inputs the page access request and the second browser on which the format conversion unit converts support an operating system of the same system; or,
the first browser for inputting the page access request by the response message receiving unit and the second browser based on the conversion of the format conversion unit respectively support operating systems of different systems.
15. The apparatus according to any of claims 11-14, wherein the format conversion unit is specifically configured to:
converting the interface packaging protocol indicated by the component calling into the interface packaging protocol supported by the component based on the protocol supported by the virtual second browser;
converting the message format indicated by the component calling into the message format supported by the component based on the protocol supported by the virtual second browser;
and converting the format of the data carried by the component calling indication into the data format supported by the component based on the protocol supported by the virtual second browser.
16. The apparatus of claim 11, wherein the format conversion unit is specifically configured to: and if the executable code bit number indicated by the calling of the component and the executable code bit number supported by the second browser are determined, converting the executable code bit number indicated by the calling of the component into the executable code bit number supported by the second browser from the executable code bit number supported by the first browser in format conversion of the calling indication of the component based on a protocol supported by the virtual second browser.
17. The apparatus of claim 11, wherein the component invocation unit is further to:
detecting whether the running state of the called component meets a preset condition or not;
and executing calling operation when the running state of the called component is judged to meet the preset condition.
18. The apparatus of claim 17, wherein the component invoking unit detecting whether the running state of the invoked component meets a preset condition comprises: whether the called component is correctly installed, whether the version number of the called component is matched with a preset version number, whether the digital signature of the called component is complete or any combination.
19. The apparatus of claim 17 or 18, wherein the component invocation unit is further configured to: when the running state of the called component is determined to be not in accordance with the preset condition, sending a component downloading indication carrying the identification of the called component to the network side; and are
And executing calling operation after downloading and installing the called component according to the component downloading address returned by the network side.
20. The apparatus of claim 19, wherein the component invocation unit is further to:
and carrying out security detection on the called component after installation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310560396.0A CN103618699B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device of invocation component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310560396.0A CN103618699B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device of invocation component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103618699A true CN103618699A (en) | 2014-03-05 |
CN103618699B CN103618699B (en) | 2016-09-21 |
Family
ID=50169403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310560396.0A Expired - Fee Related CN103618699B (en) | 2013-11-12 | 2013-11-12 | A kind of method and device of invocation component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103618699B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978378A (en) * | 2014-10-08 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Webpage access method and device |
CN106598642A (en) * | 2016-11-07 | 2017-04-26 | 北京奇虎科技有限公司 | Method and device for using services in plug-in |
CN106713478A (en) * | 2017-01-05 | 2017-05-24 | 武汉斗鱼网络科技有限公司 | Communication processing method and device |
CN106874061A (en) * | 2017-03-28 | 2017-06-20 | 北京小米移动软件有限公司 | webpage generating method and device |
CN107957911A (en) * | 2016-10-18 | 2018-04-24 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
CN108388788A (en) * | 2018-03-12 | 2018-08-10 | 山东渔翁信息技术股份有限公司 | A kind of method and device for calling USB KEY bottoms library |
CN109947517A (en) * | 2019-03-22 | 2019-06-28 | 青岛海信电器股份有限公司 | A kind of method that the input method of UI is called in Web application in display equipment |
CN110008039A (en) * | 2019-03-07 | 2019-07-12 | 平安国际智慧城市科技股份有限公司 | Interface control method, device, computer readable storage medium and computer equipment |
CN114090135A (en) * | 2021-11-24 | 2022-02-25 | 北京金堤科技有限公司 | Method and device with error correction function and supporting cross-platform calling component |
WO2023142940A1 (en) * | 2022-01-28 | 2023-08-03 | 华为技术有限公司 | Application component sharing method and related device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101561915A (en) * | 2009-06-05 | 2009-10-21 | 阿里巴巴集团控股有限公司 | Plug-in unit acquiring method, system and device thereof |
CN102043649A (en) * | 2009-10-23 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Plug-in downloading control method and plug-in downloading control system |
US20110202828A1 (en) * | 2008-11-14 | 2011-08-18 | Beijing Sogou Technology Development Co., Ltd. | Method and system for presenting web page resources |
CN102207967A (en) * | 2011-06-03 | 2011-10-05 | 奇智软件(北京)有限公司 | Method and system for automatically providing new browser plugin |
CN102314437A (en) * | 2010-06-30 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method for supporting user to browse multiple format resources and equipment |
CN102546811A (en) * | 2012-01-17 | 2012-07-04 | 百度在线网络技术(北京)有限公司 | Method and device for arranging browser plugin on mobile terminal |
-
2013
- 2013-11-12 CN CN201310560396.0A patent/CN103618699B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110202828A1 (en) * | 2008-11-14 | 2011-08-18 | Beijing Sogou Technology Development Co., Ltd. | Method and system for presenting web page resources |
CN101561915A (en) * | 2009-06-05 | 2009-10-21 | 阿里巴巴集团控股有限公司 | Plug-in unit acquiring method, system and device thereof |
CN102043649A (en) * | 2009-10-23 | 2011-05-04 | 阿里巴巴集团控股有限公司 | Plug-in downloading control method and plug-in downloading control system |
CN102314437A (en) * | 2010-06-30 | 2012-01-11 | 百度在线网络技术(北京)有限公司 | Method for supporting user to browse multiple format resources and equipment |
CN102207967A (en) * | 2011-06-03 | 2011-10-05 | 奇智软件(北京)有限公司 | Method and system for automatically providing new browser plugin |
CN102546811A (en) * | 2012-01-17 | 2012-07-04 | 百度在线网络技术(北京)有限公司 | Method and device for arranging browser plugin on mobile terminal |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978378A (en) * | 2014-10-08 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Webpage access method and device |
CN104978378B (en) * | 2014-10-08 | 2019-11-22 | 腾讯科技(深圳)有限公司 | A kind of Web access method and device |
CN107957911B (en) * | 2016-10-18 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
CN107957911A (en) * | 2016-10-18 | 2018-04-24 | 腾讯科技(深圳)有限公司 | Method and apparatus, the method and apparatus of module data processing of component call |
WO2018072626A1 (en) * | 2016-10-18 | 2018-04-26 | 腾讯科技(深圳)有限公司 | Method and apparatus for invoking component, and method and apparatus for processing component data |
US10740114B2 (en) | 2016-10-18 | 2020-08-11 | Tencent Technology (Shenzhen) Company Limited | Component invoking method and apparatus, and component data processing method and apparatus |
CN106598642B (en) * | 2016-11-07 | 2020-05-15 | 北京奇虎科技有限公司 | Method and device for using service in plug-in |
CN106598642A (en) * | 2016-11-07 | 2017-04-26 | 北京奇虎科技有限公司 | Method and device for using services in plug-in |
CN106713478A (en) * | 2017-01-05 | 2017-05-24 | 武汉斗鱼网络科技有限公司 | Communication processing method and device |
CN106713478B (en) * | 2017-01-05 | 2020-03-17 | 武汉斗鱼网络科技有限公司 | Communication processing method and device |
CN106874061A (en) * | 2017-03-28 | 2017-06-20 | 北京小米移动软件有限公司 | webpage generating method and device |
CN108388788A (en) * | 2018-03-12 | 2018-08-10 | 山东渔翁信息技术股份有限公司 | A kind of method and device for calling USB KEY bottoms library |
CN108388788B (en) * | 2018-03-12 | 2019-11-26 | 山东渔翁信息技术股份有限公司 | A kind of method and device for calling USB KEY bottom library |
CN110008039B (en) * | 2019-03-07 | 2020-11-03 | 平安国际智慧城市科技股份有限公司 | Interface control method, device, computer readable storage medium and computer equipment |
CN110008039A (en) * | 2019-03-07 | 2019-07-12 | 平安国际智慧城市科技股份有限公司 | Interface control method, device, computer readable storage medium and computer equipment |
CN109947517A (en) * | 2019-03-22 | 2019-06-28 | 青岛海信电器股份有限公司 | A kind of method that the input method of UI is called in Web application in display equipment |
CN114090135A (en) * | 2021-11-24 | 2022-02-25 | 北京金堤科技有限公司 | Method and device with error correction function and supporting cross-platform calling component |
CN114090135B (en) * | 2021-11-24 | 2024-05-24 | 北京金堤科技有限公司 | Method and device with error correction function and supporting cross-platform calling component |
WO2023142940A1 (en) * | 2022-01-28 | 2023-08-03 | 华为技术有限公司 | Application component sharing method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN103618699B (en) | 2016-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103618699B (en) | A kind of method and device of invocation component | |
CN109857515B (en) | Bridge communication method, device, equipment and computer readable storage medium | |
EP3143498B1 (en) | Code service for language-independent dispatch | |
US8751587B2 (en) | Real-time web applications | |
US8689234B2 (en) | Providing real-time widgets in a web application framework | |
US8301718B2 (en) | Architecture, system and method for a messaging hub in a real-time web application framework | |
US20130046878A1 (en) | Asynchronous request interception for testing a request life-cycle | |
US8683357B2 (en) | Providing real time web application framework socket | |
US8701129B2 (en) | Web API server program, web API publication method | |
CN105045887A (en) | Mixed mode cross-domain data interaction system and method | |
US8180828B2 (en) | Architecture, system and method for providing a plug-in architecture in a real-time web application framework | |
CN110187986B (en) | Command management method, system, device and computer readable storage medium | |
CN109582317B (en) | Method and apparatus for debugging hosted applications | |
US20190333040A1 (en) | Method of accessing payment terminal, terminal and non-volatile readable storage medium | |
CN110795181A (en) | Application program interface display method and device based on skip protocol and electronic equipment | |
CN113761412A (en) | Application page display method and device, electronic equipment, medium and application system | |
CN109343970B (en) | Application program-based operation method and device, electronic equipment and computer medium | |
JP5039946B2 (en) | Technology for relaying communication between client devices and server devices | |
CN103544209A (en) | Method and system for web page access | |
CN107450946A (en) | Chrome webpages and the terminal software means of communication, equipment and storage medium | |
WO2023083071A1 (en) | View interaction method and apparatus, electronic device, and computer readable medium | |
CN113315829B (en) | Client offline H5 page loading method and device, computer equipment and medium | |
CN115509531A (en) | Micro front end implementation method, device, terminal and storage medium based on front end technology | |
CN112769975B (en) | Data integration method and device, server and storage medium | |
CN104869167A (en) | Server and load balance system of desktop virtual application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160921 |
|
CF01 | Termination of patent right due to non-payment of annual fee |