[go: up one dir, main page]

CN108334379A - A kind of implementation method and realization device of page expansion function - Google Patents

A kind of implementation method and realization device of page expansion function Download PDF

Info

Publication number
CN108334379A
CN108334379A CN201810011549.9A CN201810011549A CN108334379A CN 108334379 A CN108334379 A CN 108334379A CN 201810011549 A CN201810011549 A CN 201810011549A CN 108334379 A CN108334379 A CN 108334379A
Authority
CN
China
Prior art keywords
code
target pages
server
expanded function
browser plug
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
CN201810011549.9A
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.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System 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 Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN201810011549.9A priority Critical patent/CN108334379A/en
Publication of CN108334379A publication Critical patent/CN108334379A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of implementation methods and realization device of page expansion function, including:Browser plug-in to server-side send for the target page wait for expanded function obtain request;Wherein, wait for that expanded function obtains the uniform resource locator (URL) for including target pages in request;Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding code is the code of the URL for the correspondence target pages that server-side obtains in the code library pre-established;Expanded function is waited for according to the code of acquisition realization target pages.From the embodiment of the present invention, since browser plug-in is obtained the corresponding code of expanded function is waited for target pages, expanded function is waited for according to code realization target pages, therefore it is realized in original operation system and waits for expanded function, avoid the switching of operation system, business procession is simplified, treatment effeciency is improved.

Description

A kind of implementation method and realization device of page expansion function
Technical field
The present invention relates to field of computer technology more particularly to the implementation methods and realization dress of a kind of page expansion function It sets.
Background technology
There is many operation systems in present enterprise and mechanism, as type of business and business tine change, this A little operation systems may can not be suitable for handling new business due to lacking some specific functions.
In the related technology, it includes that the auxiliary system of specific function is new to be suitable for handling that technical staff, which can usually develop some, Business.
However, since the auxiliary system developed is independently of original operation system, in the former operation system of processing When the new business that can not be handled, need to switch original operation system to auxiliary system, to cause business procession very numerous Trivial, treatment effeciency is low.
Invention content
In order to solve the above technical problem, the present invention provides a kind of implementation methods of page expansion function, can simplify industry Business processing procedure, improves treatment effeciency.
In order to reach the object of the invention, the present invention provides a kind of implementation methods of page expansion function, including:
Browser plug-in obtain target pages uniform resource locator (Uniform Resource Locator, URL);
To server-side send for the target page wait for expanded function obtain request;Wherein, described to wait for that expanded function obtains Include the URL of the target pages in request;
Receive that the server-side sends waits for the corresponding code of expanded function with the target pages;Wherein, described right The code answered is the code of the URL for the correspondence target pages that the server-side obtains in the code library pre-established;
Expanded function is waited for according to what the code of acquisition realized the target pages.
The expanded function that waits for that target pages are realized according to the code of acquisition, including:
The code of acquisition is added in the code of the target pages, the object code of the target pages is obtained;
The object code is run, to wait for expanded function described in the realization on the target pages.
The browser plug-in to server-side send for the target page wait for expanded function obtain request before, also wrap It includes:
The browser plug-in sends to access and ask according to the main address in pre-stored address list to the server-side It asks;
If receiving the response message for the access request that the server-side is sent, sent to the server-side Address list obtains request;
Receive the address list that the server-side is sent;
Stored address list is updated according to the address list of acquisition;
The browser plug-in to server-side send for the target page wait for expanded function obtain request, including:
The browser plug-in is directed to according to the main address in updated address list to described in server-side transmission Target pages wait for that expanded function obtains request.
If not receiving the response message for the access request that the server-side is sent, further include:
According to the standby address in the pre-stored address list access request is sent to the server-side;
If receiving the response message for access request that the server-side is sent, sent to the server-side The acquisition of the server-side address list is asked;
Receive the address list that the server-side is sent;
Stored address list is updated according to the address list of acquisition.
The present invention also provides a kind of implementation methods of page expansion function, including:
Server-side receive browser plug-in send for the target page wait for expanded function obtain request;Wherein, described Wait for that expanded function obtains the URL for including the target pages in request;
The code that the URL of the corresponding target pages is obtained in the code library pre-established, using the code of acquisition as The corresponding code of expanded function is waited for the target pages;
It is sent to the browser plug-in and described waits for the corresponding code of expanded function with target pages.
The server-side receive that browser plug-in sends for the target page wait for that expanded function obtains request before, also Including:
The server-side receives the access request that the browser plug-in is sent;
The response message for the access request is sent to the browser plug-in;
It receives the address list that the browser plug-in is sent and obtains request;
Obtain the address list of itself;
The address list obtained is sent to the browser plug-in.
The present invention also provides a kind of browser plug-ins, including:
First acquisition module, the URL for obtaining target pages;
First sending module waits for that expanded function obtains request for being sent to server-side for the target pages;Its In, it is described to wait for that expanded function obtains the URL for including the target pages in request;
First receiving module waits for that expanded function is corresponding for receiving that the server-side sends with the target pages Code;Wherein, the corresponding code is the correspondence page object that the server-side obtains in the code library pre-established The code of the URL in face;
Processing module waits for expanded function for realize the target pages according to the code of acquisition.
The processing module is specifically used for:
The code of acquisition is added in the code of the target pages, the object code of the target pages is obtained;
The object code is run, to wait for expanded function described in the realization on the target pages.
The present invention also provides a kind of server-sides, including:
Second receiving module, for receive browser plug-in transmission for the target page wait for expanded function acquisition ask It asks;Wherein, described to wait for that expanded function obtains the URL for including the target pages in request;
Acquisition module, the code of the URL for obtaining the corresponding target pages in the code library pre-established, will The code of acquisition waits for the corresponding code of expanded function as with the target pages;
Second sending module described waits for that expanded function is corresponding with target pages for being sent to the browser plug-in Code.
Second receiving module is additionally operable to receive the access request that the browser plug-in is sent;
Second sending module is additionally operable to send the response letter for the access request to the browser plug-in Breath;
Second receiving module is additionally operable to receive the address list acquisition request that the browser plug-in is sent;
The acquisition module is additionally operable to obtain the address list of itself;
Second sending module is additionally operable to send the address list obtained to the browser plug-in.
Compared with prior art, the present invention includes at least:Browser plug-in obtains the URL of target pages;It is sent out to server-side Send for the target page wait for expanded function obtain request;Wherein, it includes target pages to wait for that expanded function obtains in request URL;Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding code is server-side The code of the URL of the correspondence packet target pages obtained in the code library pre-established;Page object is realized according to the code of acquisition Wait for expanded function in face.From technical solution provided by the invention as it can be seen that being waited for target pages since browser plug-in is obtained The corresponding code of expanded function, and then wait for expanded function according to the code of acquisition realization target pages, therefore in original business It is realized in system and waits for expanded function, avoid the switching of operation system, to simplify business procession, improve processing Efficiency.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by specification, rights Specifically noted structure is realized and is obtained in claim and attached drawing.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow diagram of the implementation method of page expansion function provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the implementation method of another page expansion function provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the implementation method of another page expansion function provided in an embodiment of the present invention;
Fig. 4 is the realization process schematic of page expansion function provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of the implementation method of another page expansion function provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of browser plug-in provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of server-side provided in an embodiment of the present invention.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature mutually can arbitrarily combine.
The embodiment of the present invention provides a kind of implementation method of page expansion function, as shown in Figure 1, this method includes:
Step 101, browser plug-in obtain the URL of target pages.
Step 102, to server-side send for the target page wait for expanded function obtain request.
Wherein, wait for that expanded function obtains the URL for including target pages in request.
It should be noted that browser plug-in can be the set general name for the plug-in unit for supporting a variety of browsers, wherein being propped up The browser plug-in held may include browser auxiliary object (the Browser Helper for the browser IE for supporting Microsoft to release Object, BHO) plug-in unit, it supports Google's browser plug-in of Google (Chrome) browser and supports the fire of red fox browser Fox browser plug-in etc..
Specifically, browser plug-in sent to server-side with expanded function obtain request in include target pages URL can be:http://xxx.com/static/js/1.0.0/index.js, wherein 1.0.0 are exactly the version of target pages Number.
Step 103, receive that server-side sends wait for the corresponding code of expanded function with target pages.
Wherein, corresponding code is the URL's for the correspondence target pages that server-side obtains in the code library pre-established Code.
Specifically, waiting for that the corresponding code of expanded function can be JavaScript code with target pages.
Step 104 waits for expanded function according to the code of acquisition realization target pages.
Specifically, step 104 can be realized by step 104a, 104b:
Step 104a, the addition of the code of acquisition is obtained into the object code of target pages in the code of target pages.
Specifically, the code obtained adds in the code of target pages, code and the target pages original generation of acquisition Code constitutes the fresh code (i.e. object code) of target pages, and object code includes the code of target pages script and the generation of acquisition Code.
Step 104b, operational objective code waits for expanded function to be realized on target pages.
Specifically, due to including to realize the code for waiting for expanded function in object code, operational objective code, in mesh It marks on the page in addition to that can realize original function, additionally it is possible to while realizing and waiting for expanded function.
The implementation method for the page expansion function that the embodiment of the present invention is provided, browser plug-in obtain target pages URL;To server-side send for the target page wait for expanded function obtain request;Wherein, it waits for that expanded function obtains to wrap in request URL containing target pages;Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding Code is the code of the URL for the correspondence packet target pages that server-side obtains in the code library pre-established;According to the generation of acquisition Code realization target pages wait for expanded function.From technical solution provided by the invention as it can be seen that due to browser plug-in obtain with Target pages wait for the corresponding code of expanded function, and then wait for expanded function according to the code of acquisition realization target pages, because This realizes in original operation system and waits for expanded function, avoids the switching of operation system, to simplify business processing mistake Journey improves treatment effeciency.
The embodiment of the present invention provides the implementation method of another page expansion function, as shown in Fig. 2, this method includes:
Step 201, server-side receive browser plug-in send for the target page wait for expanded function obtain request.
Wherein, wait for that expanded function obtains the URL for including target pages in request.
Step 202, the code that the URL for corresponding to target pages is obtained in the code library pre-established, by the code of acquisition The corresponding code of expanded function is waited for as with target pages.
It should be noted that the data source of server-side supports common relevant database and non-relational database, Application programming interface (the RESTful for supporting webservice interfaces, meeting one group of constraints and principle Application Programming Interface, RESTful API) etc., therefore server-side can be by various forms of Interface obtains business datum from external data base, these data are illustrated in by having added to the expanded function code of the page On the page.
Specifically, different URL corresponds to different expanded functions, therefore code is obtained, needed according to URL in code It finds and obtains in library.It is code 1, generation respectively as an example it is assumed that being stored with 3 codes for waiting for expanded function in code library Code 2 and code 3,1 corresponding URL of code are URL 1, and 2 corresponding URL of code is URL 2, and 3 corresponding URL of code is URL 3, The URL of the page and the correspondence of code can be as shown in table 1,
The URL of the page Code
URL 1 Code 1
URL 2 Code 2
URL 3 Code 3
Table 1
If waiting for that the URL that expanded function obtains the target pages for including in request is URL 3, shown in table 1 The URL of the page with and code correspondence it is found that the code of corresponding URL 3 is code 3, therefore, code 3 is exactly and target pages Wait for the corresponding code of expanded function.
Step 203 sends to browser plug-in and waits for the corresponding code of expanded function with target pages.
The implementation method for the page expansion function that the embodiment of the present invention is provided, server-side receive what browser plug-in was sent For the target page wait for expanded function obtain request;Wherein, wait for that expanded function obtains the URL for including target pages in request; The code that the URL of corresponding target pages is obtained in the code library pre-established, using the code of acquisition as with target pages Wait for the corresponding code of expanded function;It is sent to browser plug-in and waits for the corresponding code of expanded function with target pages.From this hair The technical solution of bright offer as it can be seen that wait for the corresponding code of expanded function with target pages since browser plug-in is obtained, into And wait for expanded function according to the code of acquisition realization target pages, therefore work(to be extended is realized in original operation system Can, the switching of operation system is avoided, to simplify business procession, improves treatment effeciency.
The embodiment of the present invention provides the implementation method of another page expansion function, as shown in figure 3, this method includes:
Step 301, browser plug-in send to access and ask according to the main address in pre-stored address list to server-side It asks.
It should be noted that the address in pre-stored address list can be the Internet protocol of server-side The address (Internet Protocol, IP).Occur in order to prevent since browser plug-in caused by server-side address transfer can not The case where accessing server-side, main address and the standby address of server-side are preserved in pre-stored address list, and browser is inserted Part is asked if it is intended to accessing server-side, can be accessed using main address, if main address failure, can be switched to spare first Address.BHO plug-in units are different with the address list preserving type of Chrome plug-in units, and address list is stored in registration table by BHO plug-in units HKEY_CURRENT_USER Software Mininglamp BHO in ProjectUrls, Chrome plug-in units are by address list It is stored in the Chrome.storage.local in background page, field serverlist.
Specifically, browser plug-in sends access request according to the main address in pre-stored address list to server-side Afterwards, it if receiving the response message for access request of server-side transmission, sends address list to server-side and obtains request, If the response message for access request of server-side transmission is not received, according to standby in pre-stored address list With address access request is sent to server-side.It sends to access to server-side according to the main address in pre-stored address list and ask Ask, and receive server-side transmission for access request response message the case where illustrate in the present embodiment;According to Main address in pre-stored address list sends access request to server-side, and does not receive being directed to for server-side transmission and visit It asks the response message of request, and access request is sent to server-side according to the standby address in pre-stored address list, and Receive server-side transmission for access request response message the case where illustrate in the corresponding embodiments of Fig. 5.
Step 302, server-side receive the access request that browser plug-in is sent.
Step 303, server-side send the response message for access request to browser plug-in.
Step 304, browser plug-in receive the response message for access request that server-side is sent.
Step 305, browser plug-in send address list to server-side and obtain request.
Step 306, server-side receive the address list that browser plug-in is sent and obtain request.
Step 307, server-side obtain the address list of itself.
Step 308, server-side send the address list obtained to browser plug-in.
Step 309, browser plug-in receive the address list that server-side is sent.
Step 310, browser plug-in update stored address list according to the address list of acquisition.
Step 311, browser plug-in obtain the URL of target pages.
Step 312, browser plug-in, which are sent according to the main address in updated address list to server-side, is directed to target The page waits for that expanded function obtains request.
Wherein, wait for that expanded function obtains the URL for including target pages in request.
Step 313, server-side receive browser plug-in send for the target page wait for expanded function obtain request.
Step 314, server-side obtain the code of the URL of corresponding target pages in the code library pre-established, will obtain Code wait for the corresponding code of expanded function as with target pages.
Step 315, server-side are sent to browser plug-in waits for the corresponding code of expanded function with target pages.
What step 316, browser plug-in received that server-side sends waits for the corresponding code of expanded function with target pages.
Step 317, browser plug-in wait for expanded function according to the code of acquisition realization target pages.
Specifically, that assumes to be realized waits for that expanded function is included in CVal.js files, the code of acquisition can following institute Show:
Var cval_script=document.createElement (" script ");
Cval_script.id=" _ _ BHO__CVal__Script__ ";
Cval_script.type=" text/javascript ";
Cval_script.src=" http://127.0.0.1:8080/bhoserver/resources/static/ js/CVal.js";
document.body.appendChild(cval_script).
Specifically, browser plug-in according to the code of acquisition realizing during waiting for expanded function of target pages, need Related function module is initialized, and some function modules need to obtain the permission of user first, page expansion function Realize that schematic diagram process can be as shown in Figure 4.
It should be noted that the embodiment of the present invention limited is according to the main address in pre-stored address list to clothes Be engaged in end send access request, and have received server-side transmission response message the case where.
The implementation method for the page expansion function that the embodiment of the present invention is provided, browser plug-in obtain target pages URL;To server-side send for the target page wait for expanded function obtain request;Wherein, it waits for that expanded function obtains to wrap in request URL containing target pages;Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding Code is the code of the URL for the correspondence packet target pages that server-side obtains in the code library pre-established;According to the generation of acquisition Code realization target pages wait for expanded function.From technical solution provided by the invention as it can be seen that due to browser plug-in obtain with Target pages wait for the corresponding code of expanded function, and then wait for expanded function according to the code of acquisition realization target pages, because This realizes in original operation system and waits for expanded function, avoids the switching of operation system, to simplify business processing mistake Journey improves treatment effeciency.
The embodiment of the present invention provides the implementation method of another page expansion function, as shown in figure 5, this method includes:
Step 401, browser plug-in send to access and ask according to the main address in pre-stored address list to server-side It asks.
If step 402, do not receive server-side transmission the response message for access request, browser plug-in according to Standby address in pre-stored address list sends access request to server-side.
It should be noted that if browser plug-in is sent out according to the main address in pre-stored address list to server-side Access request is sent, and server-side does not receive the access request of browser plug-in transmission, then illustrating server-side address Non-master address, it is therefore desirable to which access request is sent to server-side according to the standby address in address list.
Step 403, server-side receive the access request that browser plug-in is sent.
Step 404, server-side send the response message for access request to browser plug-in.
Step 405, browser plug-in receive the response message for access request that server-side is sent.
Step 406, browser plug-in send address list to server-side and obtain request.
Step 407, server-side receive the address list that browser plug-in is sent and obtain request.
Step 408, server-side obtain the address list of itself.
Step 409, server-side send the address list obtained to browser plug-in.
Step 410, browser plug-in receive the address list that server-side is sent.
Step 411, browser plug-in update stored address list according to the address list of acquisition.
Step 412, browser plug-in obtain the URL of target pages.
Step 413, browser plug-in, which are sent according to the main address in updated address list to server-side, is directed to target The page waits for that expanded function obtains request.
Wherein, wait for that expanded function obtains the URL for including target pages in request.
Step 414, server-side receive browser plug-in send for the target page wait for expanded function obtain request.
Step 415, server-side obtain the code of the URL of corresponding target pages in the code library pre-established, will obtain Code wait for the corresponding code of expanded function as with target pages.
Step 416, server-side are sent to browser plug-in waits for the corresponding code of expanded function with target pages.
What step 417, browser plug-in received that server-side sends waits for the corresponding code of expanded function with target pages.
Step 418, browser plug-in wait for expanded function according to the code of acquisition realization target pages.
Include to be shown in the code obtained specifically, if waiting for that expanded function is data displaying function Mode (such as floating frame exhibition method or pop-up window methods of exhibiting), according to the super of the code building specific webpage element of acquisition Text mark up language (HyperText Markup Language, HTML) code, is then inserted into the former application system page This section of HTML code shows the page elements that this section of HTML code is created, i.e. floating frame or pop-up window on the page.
If waiting for that expanded function is auxiliary filling function, form fields are analyzed first, it is known that and fixed field can be direct Filling is filled using $ (' xxx ') .val () method of jQuery;Other fields can be by calling the history number in database According to being filled, and it is suitably modified to remind user to do.
If waiting for that expanded function is data grabber, wherein page data crawl and request data interception can be divided into.Page number According to crawl be it is used page elements are analyzed, find back end, by Code obtaining node content, obtain want crawl Data;Request data interception is by intercepting asynchronous JavaScript and XML (Asynchronous Javascript And XML, Ajax) request, it obtains request content and obtains the data for wanting crawl, code is as follows:
If waiting for that expanded function is that browser-cross redirects that (we redirect between encountering application system sometimes, but target is answered The case where IE browser not being supported with system, being needed using other browsers such as Chrome), by built in IE browser ActiveXObject object references order lines realizes that code is as follows:
Ver objshell=new AvctiveXObject (" wscript.shell ");
Objshell.Run(“file:///your_chrome_path/chrome.exe http:// www.xxxxx.com”);
It should be noted that the embodiment of the present invention limited is according to the main address in pre-stored address list to clothes Business end sends access request, does not receive the response message of server-side transmission, is then sent to server-side according to standby address Access request, and receive server-side transmission response message the case where.
The implementation method for the page expansion function that the embodiment of the present invention is provided, browser plug-in obtain target pages URL;To server-side send for the target page wait for expanded function obtain request;Wherein, it waits for that expanded function obtains to wrap in request URL containing target pages;Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding Code is the code of the URL for the correspondence packet target pages that server-side obtains in the code library pre-established;According to the generation of acquisition Code realization target pages wait for expanded function.From technical solution provided by the invention as it can be seen that due to browser plug-in obtain with Target pages wait for the corresponding code of expanded function, and then wait for expanded function according to the code of acquisition realization target pages, because This realizes in original operation system and waits for expanded function, avoids the switching of operation system, to simplify business processing mistake Journey improves treatment effeciency.
The embodiment of the present invention also provides a kind of browser plug-in, as shown in fig. 6, the browser plug-in 5 includes:
First acquisition module 51, the URL for obtaining target pages.
First sending module 52, for server-side send for the target page wait for expanded function obtain request;Wherein, Wait for that expanded function obtains the URL for including target pages in request.
First receiving module 53 waits for the corresponding code of expanded function for receiving server-side transmission with target pages; Wherein, corresponding code is the code of the URL for the correspondence target pages that server-side obtains in the code library pre-established;.
Processing module 54, for waiting for expanded function according to the code of acquisition realization target pages.
Further, processing module 54 is specifically used for:
The code of acquisition is added in the corresponding code of target pages, the object code of target pages is obtained;
Operational objective code waits for expanded function to be realized on target pages.
Further, the first sending module 52 is additionally operable to according to the main address in pre-stored address list to server-side Send access request;If receiving the response message for access request of server-side transmission, address column is sent to server-side Table obtains request.
First receiving module 53 is additionally operable to receive the address list that server-side is sent.
Processing module 54 is additionally operable to update stored address list according to the address list of acquisition.
First sending module 52, specifically for being directed to server-side transmission according to the main address in updated address list Target pages wait for that expanded function obtains request.
Further, the first sending module 52 is additionally operable to according to the standby address in pre-stored address list to service End sends access request.
The browser plug-in that the embodiment of the present invention is provided obtains the URL of target pages;It is sent to server-side and is directed to target The page waits for that expanded function obtains request;Wherein, wait for that expanded function obtains the URL for including target pages in request;Receive service What end was sent waits for the corresponding code of expanded function with target pages;Wherein, corresponding code is that server-side is pre-establishing The code of the URL of the correspondence packet target pages obtained in code library;The work(to be extended of target pages is realized according to the code of acquisition Energy.From technical solution provided by the invention as it can be seen that waiting for that expanded function is corresponding with target pages since browser plug-in is obtained Code, and then realize that target pages wait for expanded function according to the code of acquisition, therefore realized in original operation system It waits for expanded function, avoids the switching of operation system, to simplify business procession, improve treatment effeciency.
In practical applications, first acquisition module 51, the first sending module 52, the first receiving module 53 and processing Module 54 can be by the central processing unit (Central Processing Unit, CPU) in browser plug-in, microprocessor Device (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or existing The realizations such as field programmable gate array (Field Programmable Gate Array, FPGA).
The embodiment of the present invention also provides a kind of server-side, as shown in fig. 7, the server-side 6 includes:
Second receiving module 61, for receive browser plug-in transmission for the target page wait for expanded function acquisition ask It asks;Wherein, wait for that expanded function obtains the URL for including target pages in request.
Second acquisition module 62, the code of the URL for obtaining corresponding target pages in the code library pre-established, The corresponding code of expanded function is waited for using the code of acquisition as with target pages.
Second sending module 63 waits for the corresponding code of expanded function for being sent to browser plug-in with target pages.
Further, the second receiving module 61 is additionally operable to receive the access request that browser plug-in is sent.
Second sending module 63 is additionally operable to send the response message for access request to browser plug-in.
Second receiving module 61 is additionally operable to receive the address list acquisition request that browser plug-in is sent.
Second acquisition module 62 is additionally operable to obtain the address list of itself.
Second sending module 63 is additionally operable to send the address list obtained to browser plug-in.
The server-side that the embodiment of the present invention is provided receives the work(to be extended for the target page that browser plug-in is sent Request can be obtained;Wherein, wait for that expanded function obtains the URL for including target pages in request;It is obtained in the code library pre-established The code for taking the URL of corresponding target pages waits for the corresponding code of expanded function using the code of acquisition as with target pages;To Browser plug-in is sent waits for the corresponding code of expanded function with target pages.From technical solution provided by the invention as it can be seen that by It is obtained in browser plug-in and waits for the corresponding code of expanded function with target pages, and then target realized according to the code of acquisition The page waits for expanded function, therefore is realized in original operation system and wait for expanded function, avoids the switching of operation system, from And business procession is simplified, improve treatment effeciency.
In practical applications, second receiving module 61, the second acquisition module 62 and the second sending module 63 can be by The realizations such as CPU, MPU, DSP or FPGA in server-side.
The embodiment of the present invention also provides a kind of device for realizing page expansion function, including first memory and first Processor, wherein the following instruction that can be executed by first processor is stored in first memory:
Obtain the URL of target pages.
To server-side send for the target page wait for expanded function obtain request;Wherein, wait for that expanded function obtains request In include the URL of target pages.
Receive that server-side sends waits for the corresponding code of expanded function with target pages;Wherein, corresponding code is clothes The code of the URL for the correspondence target pages that business end obtains in the code library pre-established;.
Expanded function is waited for according to the code of acquisition realization target pages.
Further, specifically also it is stored with the following instruction that can be executed by first processor in first memory:
The code of acquisition is added in the code of target pages, the object code of target pages is obtained.
Operational objective code waits for expanded function to be realized on target pages.
Further, the following instruction that can be executed by first processor is also stored in first memory:
According to the main address in pre-stored address list access request is sent to server-side.
If receiving the response message for access request of server-side transmission, sends address list to server-side and obtain Request.
Receive the address list that server-side is sent.
Stored address list is updated according to the address list of acquisition.
According to the main address in updated address list to server-side send for the target page wait for that expanded function obtains Take request.
Further, the following instruction that can be executed by first processor is also stored in first memory:
According to the standby address in pre-stored address list access request is sent to server-side.
If receiving the response message for access request of server-side transmission, server-side address column is sent to server-side The acquisition of table is asked.
Receive the address list that server-side is sent.
Stored address list is updated according to the address list of acquisition.
The embodiment of the present invention also provides a kind of device for realizing page expansion function, including second memory and second Processor, wherein the following instruction that can be executed by second processor is stored in second memory:
Receive browser plug-in send for the target page wait for expanded function obtain request;Wherein, expanded function is waited for Obtain the URL for including target pages in request.
The code that the URL of corresponding target pages is obtained in the code library pre-established, using the code of acquisition as with mesh The mark page waits for the corresponding code of expanded function.
It is sent to browser plug-in and waits for the corresponding code of expanded function with target pages.
Further, the following instruction that can be executed by second processor is also stored in second memory:
Receive the access request that browser plug-in is sent.
The response message for access request is sent to browser plug-in.
It receives the address list that browser plug-in is sent and obtains request.
Obtain the address list of itself.
The address list obtained is sent to browser plug-in.
Although disclosed herein embodiment it is as above, content only for ease of understanding the present invention and use implementation Mode is not limited to the present invention.Technical staff in any fields of the present invention, do not depart from disclosed herein Under the premise of spirit and scope, any modification and variation can be carried out in the form and details of implementation, but the present invention's is special Sharp protection domain, still should be subject to the scope of the claims as defined in the appended claims.

Claims (10)

1. a kind of implementation method of page expansion function, which is characterized in that including:
Browser plug-in obtains the uniform resource position mark URL of target pages;
It is sent to server-side and waits for that expanded function obtains request for the target pages;Wherein, described to wait for that expanded function obtains Include the URL of the target pages in request;
Receive that the server-side sends waits for the corresponding code of expanded function with the target pages;Wherein, described corresponding Code is the code of the URL for the correspondence target pages that the server-side obtains in the code library pre-established;
Expanded function is waited for according to what the code of acquisition realized the target pages.
2. implementation method according to claim 1, which is characterized in that described to realize target pages according to the code of acquisition Wait for expanded function, including:
The code of acquisition is added in the code of the target pages, the object code of the target pages is obtained;
The object code is run, to wait for expanded function described in the realization on the target pages.
3. implementation method according to claim 1 or 2, which is characterized in that the browser plug-in sends needle to server-side To target pages wait for expanded function obtain request before, further include:
The browser plug-in sends access request according to the main address in pre-stored address list to the server-side;
If receiving the response message for the access request that the server-side is sent, address is sent to the server-side List obtains request;
Receive the address list that the server-side is sent;
Stored address list is updated according to the address list of acquisition;
The browser plug-in to server-side send for the target page wait for expanded function obtain request, including:
The browser plug-in sends according to the main address in updated address list to the server-side described for target The page waits for that expanded function obtains request.
4. implementation method according to claim 3, which is characterized in that if not receiving being directed to for the server-side transmission The response message of the access request further includes:
According to the standby address in the pre-stored address list access request is sent to the server-side;
If receiving the response message for access request that the server-side is sent, described in server-side transmission The acquisition of server-side address list is asked;
Receive the address list that the server-side is sent;
Stored address list is updated according to the address list of acquisition.
5. a kind of implementation method of page expansion function, which is characterized in that including:
Server-side receive browser plug-in send for the target page wait for expanded function obtain request;Wherein, described to wait expanding Exhibition function obtains the URL for including the target pages in request;
The code that the URL of the corresponding target pages is obtained in the code library pre-established, using the code of acquisition as with institute That states target pages waits for the corresponding code of expanded function;
It is sent to the browser plug-in and described waits for the corresponding code of expanded function with target pages.
6. implementation method according to claim 5, which is characterized in that the server-side receives the needle that browser plug-in is sent To target pages wait for expanded function obtain request before, further include:
The server-side receives the access request that the browser plug-in is sent;
The response message for the access request is sent to the browser plug-in;
It receives the address list that the browser plug-in is sent and obtains request;
Obtain the address list of itself;
The address list obtained is sent to the browser plug-in.
7. a kind of browser plug-in, which is characterized in that including:
First acquisition module, the URL for obtaining target pages;
First sending module waits for that expanded function obtains request for being sent to server-side for the target pages;Wherein, institute It states and waits for that expanded function obtains the URL for including the target pages in request;
First receiving module waits for expanded function corresponding generation for receiving that the server-side sends with the target pages Code;Wherein, the corresponding code is the correspondence target pages that the server-side obtains in the code library pre-established URL code;
Processing module waits for expanded function for realize the target pages according to the code of acquisition.
8. browser plug-in according to claim 7, which is characterized in that the processing module is specifically used for:
The code of acquisition is added in the code of the target pages, the object code of the target pages is obtained;
The object code is run, to wait for expanded function described in the realization on the target pages.
9. a kind of server-side, which is characterized in that including:
Second receiving module, for receive browser plug-in transmission for the target page wait for expanded function obtain request;Its In, it is described to wait for that expanded function obtains the URL for including the target pages in request;
Second acquisition module, the code of the URL for obtaining the corresponding target pages in the code library pre-established, will obtain Code wait for the corresponding code of expanded function as with the target pages;
Second sending module described waits for expanded function corresponding generation with target pages for being sent to the browser plug-in Code.
10. server-side according to claim 9, which is characterized in that
Second receiving module is additionally operable to receive the access request that the browser plug-in is sent;
Second sending module is additionally operable to send the response message for the access request to the browser plug-in;
Second receiving module is additionally operable to receive the address list acquisition request that the browser plug-in is sent;
Second acquisition module is additionally operable to obtain the address list of itself;
Second sending module is additionally operable to send the address list obtained to the browser plug-in.
CN201810011549.9A 2018-01-05 2018-01-05 A kind of implementation method and realization device of page expansion function Pending CN108334379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810011549.9A CN108334379A (en) 2018-01-05 2018-01-05 A kind of implementation method and realization device of page expansion function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810011549.9A CN108334379A (en) 2018-01-05 2018-01-05 A kind of implementation method and realization device of page expansion function

Publications (1)

Publication Number Publication Date
CN108334379A true CN108334379A (en) 2018-07-27

Family

ID=62924817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810011549.9A Pending CN108334379A (en) 2018-01-05 2018-01-05 A kind of implementation method and realization device of page expansion function

Country Status (1)

Country Link
CN (1) CN108334379A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795109A (en) * 2019-10-25 2020-02-14 北京达佳互联信息技术有限公司 Function expansion method and device and electronic equipment
WO2023001276A1 (en) * 2021-07-23 2023-01-26 北京字跳网络技术有限公司 Information display method and apparatus, terminal, and storage medium
CN117093285A (en) * 2023-08-31 2023-11-21 深圳市雁联计算系统有限公司 Dynamic implementation method, system, terminal and medium for browser extension program
CN118394421A (en) * 2024-02-22 2024-07-26 中金金融认证中心有限公司 A plug-in implementation method and system suitable for Safari browser

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192216A (en) * 2006-11-28 2008-06-04 中兴通讯股份有限公司 Static state page control and WEB server interaction accomplishing method and the WEB server
CN101645090A (en) * 2009-08-04 2010-02-10 成都市华为赛门铁克科技有限公司 Page display method, server and network system
CN102362261A (en) * 2009-03-25 2012-02-22 微软公司 Enter content into the application via a web browser
CN102750281A (en) * 2011-04-19 2012-10-24 腾讯科技(深圳)有限公司 Script processing method and system of browser
CN103020087A (en) * 2011-09-26 2013-04-03 百度在线网络技术(北京)有限公司 Method and device for generating clicking journals, as well as method and device for adjusting search results
WO2013185565A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method and device for browsing web under weak light with mobile terminal browser
CN103500210A (en) * 2013-09-27 2014-01-08 北京奇虎科技有限公司 Method, device and browser for carrying out webpage loading
CN103645912A (en) * 2013-11-08 2014-03-19 北京奇虎科技有限公司 Method for loading browser extensions and/or plugins and browser
US20140089940A1 (en) * 2012-09-27 2014-03-27 Vmware, Inc. Method and system for communication between application and web-page embedded code
CN103970760A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Webpage request handling method and device
CN104361130A (en) * 2014-12-05 2015-02-18 程治永 Method for searching equipment in local area network or appointed network segment in webpage
CN104572843A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Page loading method and device
CN105718512A (en) * 2016-01-13 2016-06-29 北京齐尔布莱特科技有限公司 Method for calling native language by using JS language in Ios system
CN106874061A (en) * 2017-03-28 2017-06-20 北京小米移动软件有限公司 webpage generating method and device
CN106888405A (en) * 2017-01-03 2017-06-23 青岛海信电器股份有限公司 Webpage method of adjustment, browser client and system in TV browser
CN107025296A (en) * 2017-04-17 2017-08-08 山东辰华科技信息有限公司 Based on science service information intelligent grasping system method of data capture
CN107451270A (en) * 2017-08-03 2017-12-08 掌阅科技股份有限公司 Page display method, electronic equipment and computer-readable storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192216A (en) * 2006-11-28 2008-06-04 中兴通讯股份有限公司 Static state page control and WEB server interaction accomplishing method and the WEB server
CN102362261A (en) * 2009-03-25 2012-02-22 微软公司 Enter content into the application via a web browser
CN101645090A (en) * 2009-08-04 2010-02-10 成都市华为赛门铁克科技有限公司 Page display method, server and network system
CN102750281A (en) * 2011-04-19 2012-10-24 腾讯科技(深圳)有限公司 Script processing method and system of browser
CN103020087A (en) * 2011-09-26 2013-04-03 百度在线网络技术(北京)有限公司 Method and device for generating clicking journals, as well as method and device for adjusting search results
WO2013185565A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method and device for browsing web under weak light with mobile terminal browser
US20140089940A1 (en) * 2012-09-27 2014-03-27 Vmware, Inc. Method and system for communication between application and web-page embedded code
CN103970760A (en) * 2013-01-28 2014-08-06 腾讯科技(深圳)有限公司 Webpage request handling method and device
CN103500210A (en) * 2013-09-27 2014-01-08 北京奇虎科技有限公司 Method, device and browser for carrying out webpage loading
CN103645912A (en) * 2013-11-08 2014-03-19 北京奇虎科技有限公司 Method for loading browser extensions and/or plugins and browser
CN104361130A (en) * 2014-12-05 2015-02-18 程治永 Method for searching equipment in local area network or appointed network segment in webpage
CN104572843A (en) * 2014-12-12 2015-04-29 百度在线网络技术(北京)有限公司 Page loading method and device
CN105718512A (en) * 2016-01-13 2016-06-29 北京齐尔布莱特科技有限公司 Method for calling native language by using JS language in Ios system
CN106888405A (en) * 2017-01-03 2017-06-23 青岛海信电器股份有限公司 Webpage method of adjustment, browser client and system in TV browser
CN106874061A (en) * 2017-03-28 2017-06-20 北京小米移动软件有限公司 webpage generating method and device
CN107025296A (en) * 2017-04-17 2017-08-08 山东辰华科技信息有限公司 Based on science service information intelligent grasping system method of data capture
CN107451270A (en) * 2017-08-03 2017-12-08 掌阅科技股份有限公司 Page display method, electronic equipment and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王敏: "《网络攻击与防御》", 31 January 2017 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795109A (en) * 2019-10-25 2020-02-14 北京达佳互联信息技术有限公司 Function expansion method and device and electronic equipment
WO2023001276A1 (en) * 2021-07-23 2023-01-26 北京字跳网络技术有限公司 Information display method and apparatus, terminal, and storage medium
CN117093285A (en) * 2023-08-31 2023-11-21 深圳市雁联计算系统有限公司 Dynamic implementation method, system, terminal and medium for browser extension program
CN118394421A (en) * 2024-02-22 2024-07-26 中金金融认证中心有限公司 A plug-in implementation method and system suitable for Safari browser

Similar Documents

Publication Publication Date Title
CN109683998B (en) Internationalization realization method, device and system
US20190243866A1 (en) Mobile enablement of existing web sites
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US11563674B2 (en) Content based routing method and apparatus
US8719421B2 (en) Cross domain interaction of a web application
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
US8499099B1 (en) Converting data into addresses
CN108334379A (en) A kind of implementation method and realization device of page expansion function
CN109032797A (en) For providing the method and apparatus of web page access
CN104410711A (en) Cross-domain network resource request method and device for client
CN110704200B (en) Method and device for converting calling interface
US9088461B2 (en) Common web accessible data store for client side page processing
US20140281859A1 (en) Enhanced mobilization of existing web sites
US20110145299A1 (en) Offline Gadgets IDE
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
US20040268249A1 (en) Document transformation
CN113076294B (en) Information sharing method and device
CN115668894A (en) Service worker configured to service a plurality of single-page applications
CN106980698A (en) Browser static resource loading method, browser program and readable storage medium storing program for executing
US20130185322A1 (en) Systems and methods for providing an electronic contact card
US20150324479A1 (en) Identifying a browser for rendering an electronic document
US9727643B2 (en) Managing loading of web pages
CN106790276A (en) A kind of browser-cross data interactive method and device based on browser protocol
CN112764757B (en) Applet processing method, device, equipment and storage medium
US20140245124A1 (en) System and method thereof for browser agnostic extension models

Legal Events

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

Application publication date: 20180727

RJ01 Rejection of invention patent application after publication