CN101634947A - IE control using local resources of client and application method thereof - Google Patents

IE control using local resources of client and application method thereof Download PDF

Info

Publication number
CN101634947A
CN101634947A CN200910090602A CN200910090602A CN101634947A CN 101634947 A CN101634947 A CN 101634947A CN 200910090602 A CN200910090602 A CN 200910090602A CN 200910090602 A CN200910090602 A CN 200910090602A CN 101634947 A CN101634947 A CN 101634947A
Authority
CN
China
Prior art keywords
control
resource
animation
local
client
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.)
Pending
Application number
CN200910090602A
Other languages
Chinese (zh)
Inventor
黄朝兴
刘超俊
章炎
李军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN200910090602A priority Critical patent/CN101634947A/en
Publication of CN101634947A publication Critical patent/CN101634947A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides an IE control using the local resources of a client and an application method thereof. The method mainly comprises the following steps: loading the IE control to a web page by the client through a browser, and then sending resource call requests to a local resource manager of the client by the IE control through an application programming interface (API) when the IE control needs to use the local resources of the client; receiving the local resources sent by the local resource manager by the IE control, and loading the local resources. The invention ensures that the IE control and the client share resources and a flash control in the IE control also can share resources with the client so as to save network flow and enhance the use performance of the IE control.

Description

Use the IE control and the application process thereof of the local resource of client
Technical field
The present invention relates to the Computer Applied Technology field, relate in particular to a kind of IE (Internet Explorer, explorer) control and application process thereof that uses the local resource of client.
Background technology
At present, in the IE control being applied to web (network) page, client is browsed this web page, when using the IE control to load the web content, the web content comes from server end, and the resource that embeds in the web content comes from server end, and the flash control in the IE control also is the accesses network resource.
Also be not applied to the method for the local resource of IE control use client in the web page in the prior art.
Summary of the invention
Embodiments of the invention provide a kind of IE control and application process thereof that uses the local resource of client, so that be applied to the local resource of IE control use client in the web page.
A kind of IE control that uses the local resource of client comprises:
The scripted code module is used for when the IE control need use local resource, sends the resource transfer request by scripted code to local calling module; Receive the various resources that local calling module sends, these various resources are loaded in the IE control;
Local calling module, be used for resource transfer request according to the transmission of scripted code module, undertaken calling the various resources that the IE control need use from client terminal local alternately by application programming interface API and client, the resource of calling is sent to the scripted code module.
A kind of IE control uses the method for local resource, comprising:
When the IE control need use local resource, described IE control sent the resource transfer request by application programming interface API to client;
Described IE control receives the local resource that described client sends, and described local resource is loaded.
The technical scheme that is provided by the embodiment of the invention described above as can be seen, the embodiment of the invention can be so that IE control and client common source, and the flash control in the IE control also can with the client common source, thereby saved network traffics, improved the usability of IE control.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The structural representation of a kind of IE control that Fig. 1 provides for the embodiment of the invention one;
A kind of IE control that Fig. 2 provides for the embodiment of the invention two uses the processing flow chart of the method for local Flash file;
Flash control in a kind of IE control that Fig. 3 provides for the embodiment of the invention three uses the processing flow chart of the method for local Flash resource.
Embodiment
In embodiments of the present invention, after client is loaded into the IE control in the webpage by browser, when described IE control need use the local resource of client, described IE control sent the resource transfer request by application programming interface API to the local resource manager of client; Described IE control receives the local resource that described local resource manager sends, and described local resource is loaded.
For ease of understanding, be that example is further explained explanation below in conjunction with accompanying drawing with several specific embodiments, and each embodiment does not constitute the qualification to the embodiment of the invention to the embodiment of the invention.
Embodiment one
The structural representation of a kind of IE control that this embodiment provides comprises as shown in Figure 1 as lower module:
Scripted code module 11 is used for after client is loaded into webpage by browser with the IE control, when the IE control need use the local resource of client, sends the resource transfer request to local calling module.Receive the various resources that local calling module sends, these various resources are loaded in the IE control.Above-mentioned scripted code module can be the Javascript module.Above-mentioned client can be user's the various terminals that are connected with network, and this terminal can be portable terminals such as PC (Personal Computer, personal computer) terminal or mobile phone.
Local calling module 12, external call interface as the IE control, be used for resource transfer request according to the transmission of scripted code module, by API (Application Programming Interface, application programming interface) and the local resource manager of client carry out calling the various resources that the IE control need use from client terminal local alternately, such as, Flash resources etc. send to the scripted code module with the resource of calling.Local calling module can be Javascript API expansion platform.
Described IE control can also comprise:
Animation control module 13 is used to receive the animation file that the scripted code module sends, and by the animation control code this animation file is carried out initialization and loading.Above-mentioned animation control module can be the Flash control module, and this moment, above-mentioned animation control code was AS (ActionScript, an action script) code; Above-mentioned animation control module can also be the silverlight control module, and this moment, above-mentioned animation control code was js and ASP (Active Server Pages, Active Server Pages) script.
When the animation control module also needs to call other local resource, such as, picture, sound, literal and animation etc. send the request of calling local resource by the animation control code to above-mentioned scripted code module.Receive the local resource that the scripted code module sends, this local resource is loaded by the animation control module.
Embodiment two
A kind of IE control that this embodiment provides use local Flash file method treatment scheme as shown in Figure 2, comprise following treatment step:
Step 21, client are loaded into the IE control in the webpage by browser, and the IE control is carried out initialization.
Scripted code module in step 22, the IE control brings into operation, and the local calling module in the IE control sends the request of calling the Flash file.After local calling module receives this request, send the request of calling the Flash file to the explorer of client terminal local by API (Application Programming Interface, application programming interface).
Above-mentioned scripted code module can be the Javascript module, and then local calling module can be Javascript API expansion platform.
Step 23, local calling module obtain the Flash file from client terminal local, such as, the swf file.Local calling module sends to above-mentioned scripted code module with above-mentioned Flash file.Above-mentioned scripted code module sends to above-mentioned Flash file the Flash control in the IE control again.
After Flash control in step 24, the IE control receives above-mentioned Flash resource file, above-mentioned Flash file is carried out initialization, this Flash file is loaded by the AS in the Flash control (ActionScript, animation script) code.
Embodiment three
Flash control in a kind of IE control that this embodiment provides use local Flash resource method treatment scheme as shown in Figure 3, comprise following treatment step:
After Flash control in step 31, the IE control loads the Flash file by the AS code, the Flash resource that also needs to call other when this Flash control, such as, picture, sound, literal and animation etc., the Flash control sends the request of calling the Flash resource by the scripted code module of AS code in above-mentioned IE control.
After scripted code module in step 32, the IE control received the request of calling the Flash resource of above-mentioned Flash control transmission, the local calling module in the IE control sent the request of calling the Flash resource.After local calling module receives this request, send the request of calling the Flash resource to the explorer of client terminal local by API.
Step 33, local calling module obtain the Flash resource from client terminal local, such as, picture, sound, literal and animation etc.Local calling module sends to above-mentioned scripted code module with above-mentioned Flash resource.Above-mentioned scripted code module sends to above-mentioned Flash resource the Flash control in the IE control again.
After the Flash control receives above-mentioned Flash resource, this Flash resource is loaded by the AS code in the Flash control.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In sum, the embodiment of the invention can be so that IE control and client common source, and the flash control in the IE control also can with the client common source, make that the preview flash file in the web page has been placed on this locality.Thereby saved network traffics, improved the usability of IE control.
This case has realized the IE control, and the flash control in the IE control, and local program realized the unified utilization of resources and management makes when the three utilizes with a resource and can utilize the powerful resource management capacity of client without repeated downloads.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (9)

1, a kind of IE control that uses the local resource of client is characterized in that, comprising:
The scripted code module is used for when the IE control need use local resource, sends the resource transfer request by scripted code to local calling module; Receive the various resources that local calling module sends, these various resources are loaded in the IE control;
Local calling module, be used for resource transfer request according to the transmission of scripted code module, undertaken calling the various resources that the IE control need use from client terminal local alternately by application programming interface API and client, the resource of calling is sent to the scripted code module.
2, IE control according to claim 1 is characterized in that, described IE control also comprises:
The animation control module is used to receive the animation file that the scripted code module sends, and this animation file is loaded; Need call the animation resource of this locality of client when animation control, send the request of calling the animation resource to above-mentioned scripted code module, the animation resource of this locality of the client that reception scripted code module sends loads this animation resource.
3, IE control according to claim 2 is characterized in that, described animation control module comprises: flash control module or silverlight control module.
4, according to claim 1 or 2 or 3 described IE controls, it is characterized in that described scripted code module is the Javascript module, described local calling module is a Javascript API expansion platform.
5, a kind of IE control uses the method for local resource, it is characterized in that, comprising:
When the IE control need use local resource, described IE control sent the resource transfer request by application programming interface API to client;
Described IE control receives the local resource that described client sends, and described local resource is loaded.
6, IE control according to claim 5 uses the method for local resource, it is characterized in that, described IE control sends the resource transfer request by application programming interface API to client, comprising:
Described IE control sends the resource transfer request by scripted code to the external call interface of described IE control, and described external call interface sends the resource transfer request by API to the local resource manager of client.
7, IE control according to claim 6 is characterized in that, described scripted code is the Javascript module, and described API is Javascript API.
8, according to the method for claim 5 or 6 or 7 described IE controls use local resources, it is characterized in that described described IE control receives the local resource that described client sends, and described local resource is loaded, and also comprises:
Described IE control receives the animation file of this locality that the local resource manager of described client sends, and described animation file is sent to animation control in the described IE control, and described animation control loads this animation file.
9, IE control according to claim 5 uses the method for local resource, it is characterized in that, described described IE control receives the local resource that described client sends, and described local resource is loaded, and also comprises:
When described animation control need call the animation resource of this locality of client, send the request of calling the animation resource to described external call interface by the animation control code;
Described external call interface sends the request of calling the animation resource by API to the local resource manager of client, the animation resource that described local resource manager is returned sends to described animation control, and described animation control loads this animation resource by the animation control code.
CN200910090602A 2009-08-31 2009-08-31 IE control using local resources of client and application method thereof Pending CN101634947A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910090602A CN101634947A (en) 2009-08-31 2009-08-31 IE control using local resources of client and application method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910090602A CN101634947A (en) 2009-08-31 2009-08-31 IE control using local resources of client and application method thereof

Publications (1)

Publication Number Publication Date
CN101634947A true CN101634947A (en) 2010-01-27

Family

ID=41594144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910090602A Pending CN101634947A (en) 2009-08-31 2009-08-31 IE control using local resources of client and application method thereof

Country Status (1)

Country Link
CN (1) CN101634947A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006203A (en) * 2010-12-07 2011-04-06 苏州阔地网络科技有限公司 Method for monitoring Flash network flow on webpage
CN102088479A (en) * 2010-12-07 2011-06-08 苏州阔地网络科技有限公司 Method for realizing multi-Flash network flow monitoring on webpage
CN103019835A (en) * 2011-09-26 2013-04-03 同方股份有限公司 System and method for optimizing interruption resources in multi-core processor
CN103177040A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device for calling functions of webpage application
CN103412914A (en) * 2013-08-05 2013-11-27 广州仙海网络科技有限公司 Network client side
CN103581249A (en) * 2012-07-31 2014-02-12 腾讯科技(上海)有限公司 Information push method, system and client terminal
CN103914453A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Method and device for local resource access and electronic device
CN103927151A (en) * 2013-01-11 2014-07-16 联想(北京)有限公司 Method and device for implementing local operation on web page
CN105487932A (en) * 2015-11-24 2016-04-13 上海斐讯数据通信技术有限公司 Data interaction method and system, and client side
CN105893161A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and apparatus for calling resource in software program
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN106716405A (en) * 2014-09-12 2017-05-24 酷比特公司 System, method and computer program product for injecting directly into a web browser commands and/or contents created on local desktop applications of a computer device, and vice-versa

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102006203A (en) * 2010-12-07 2011-04-06 苏州阔地网络科技有限公司 Method for monitoring Flash network flow on webpage
CN102088479A (en) * 2010-12-07 2011-06-08 苏州阔地网络科技有限公司 Method for realizing multi-Flash network flow monitoring on webpage
CN102088479B (en) * 2010-12-07 2012-05-09 苏州阔地网络科技有限公司 Method for realizing multi-Flash network flow monitoring on webpage
CN103019835A (en) * 2011-09-26 2013-04-03 同方股份有限公司 System and method for optimizing interruption resources in multi-core processor
CN103177040A (en) * 2011-12-26 2013-06-26 腾讯科技(深圳)有限公司 Method and device for calling functions of webpage application
CN103581249A (en) * 2012-07-31 2014-02-12 腾讯科技(上海)有限公司 Information push method, system and client terminal
CN103914453A (en) * 2012-12-31 2014-07-09 联想(北京)有限公司 Method and device for local resource access and electronic device
CN103927151A (en) * 2013-01-11 2014-07-16 联想(北京)有限公司 Method and device for implementing local operation on web page
CN103927151B (en) * 2013-01-11 2018-04-27 联想(北京)有限公司 The method and apparatus that local operation is realized on web page
CN103412914A (en) * 2013-08-05 2013-11-27 广州仙海网络科技有限公司 Network client side
CN106716405A (en) * 2014-09-12 2017-05-24 酷比特公司 System, method and computer program product for injecting directly into a web browser commands and/or contents created on local desktop applications of a computer device, and vice-versa
CN105487932A (en) * 2015-11-24 2016-04-13 上海斐讯数据通信技术有限公司 Data interaction method and system, and client side
CN105893161A (en) * 2015-12-14 2016-08-24 乐视网信息技术(北京)股份有限公司 Method and apparatus for calling resource in software program
CN105897902A (en) * 2016-05-05 2016-08-24 北京思特奇信息技术股份有限公司 Method and system for starting local application by browser
CN105897902B (en) * 2016-05-05 2018-10-19 北京思特奇信息技术股份有限公司 It is a kind of to start locally applied method and system by browser

Similar Documents

Publication Publication Date Title
CN101634947A (en) IE control using local resources of client and application method thereof
CN101557551A (en) Cloud service accessing method, device and communication system thereof for mobile terminal
CN102597982B (en) Efficient service discovery for peer-to-peer networking devices
CN108055248A (en) Remote invocation method, server and storage medium based on dubbo frames
CN108255615A (en) Across language call method, server and storage medium
US20100131590A1 (en) Extending the capability of computing devices by using dynamically scalable external resources
CN102375753B (en) Mobile terminal application presetting method and mobile terminal
CN102323887B (en) Browser engine-based method for dynamically loading Widget and mobile terminal
CN102158819B (en) For mobile device display E-mail processing method, server and mobile device
CN102065108A (en) Method, wireless communication terminal and client browser for realizing pre-download
CN102137123A (en) Device and method for realizing process-to-process communication of different application programs on mobile terminal
CN101741986A (en) Page cache method for mobile communication equipment terminal
CN101799821B (en) Method and system for realizing webpage application by widget
CN104038510A (en) IOS system transparent agent realization method and system
CN102368785A (en) Network file uploading method, device and system
CN105487640A (en) Image pre-loading and caching method of Android watch
CN103095801B (en) A kind ofly apply the method and apparatus that browser processes resource automatically
CN106973020A (en) The flow limitation method and system of network sharing terminal and network sharing
CN102907071A (en) Data transmission method, mobile terminal, proxy server
CN104283920A (en) Use method, server, terminal and system for Webapp router
CN105701153A (en) Method and device for reading webpage resources and electronic equipment
CN103559091B (en) A kind of data dispatching method and split type terminal system
CN102156697A (en) Method and terminal equipment for realizing webpage application through widget
CN112214250A (en) Application program assembly loading method and device
CN105677730A (en) Method and device for reading webpage resources and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100127