CN102402588B - A kind of equipment and method that page script in the page is carried out pre-trigger process - Google Patents

A kind of equipment and method that page script in the page is carried out pre-trigger process Download PDF

Info

Publication number
CN102402588B
CN102402588B CN201110329921.9A CN201110329921A CN102402588B CN 102402588 B CN102402588 B CN 102402588B CN 201110329921 A CN201110329921 A CN 201110329921A CN 102402588 B CN102402588 B CN 102402588B
Authority
CN
China
Prior art keywords
page
script
trigger
accession
operation information
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.)
Active
Application number
CN201110329921.9A
Other languages
Chinese (zh)
Other versions
CN102402588A (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201110329921.9A priority Critical patent/CN102402588B/en
Publication of CN102402588A publication Critical patent/CN102402588A/en
Application granted granted Critical
Publication of CN102402588B publication Critical patent/CN102402588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of equipment processing the page script in the page and method, including: obtaining the accession page intending being supplied to subscriber equipment, wherein, accession page includes page script;Script relevant information according to page script, carries out matching inquiry in script mode storehouse, with the pre-trigger operation information that retrieval is corresponding with page script;When retrieval obtains pre-trigger operation information, operate information according to pre-trigger, page script is carried out pre-trigger process, to obtain the results page corresponding with accession page;Results page is provided to subscriber equipment.Compared with prior art, the present invention is according to the script relevant information of page script, retrieve the pre-trigger operation information corresponding with page script, and then page script is carried out pre-trigger process to obtain results page, thus can significantly reduce the interaction times between user and server, promote the web browsing experience of user.

Description

A kind of equipment and method that page script in the page is carried out pre-trigger process
Technical field
The present invention relates to the page treatment technology of the Internet, particularly relate to the page script in the page is carried out at pre-trigger The technology of reason.
Background technology
Along with the development of the Internet, all kinds of scripts are widely used in webpage design, and these scripts are possible not only to subtract The scale of little webpage and raising web page browsing speed, and content and the performance of webpage can be enriched, such as picture, animation, sound Deng.
But, when server is at transfer page script, type and the function of different page scripts will cause multiple man-machine Interactive interface, such as: for authentication code pattern, in some webpage, only user passes through mouse click event or input through keyboard Event have activated authentication code, and the certification picture corresponding with this authentication code just can be downloaded from network and display, in this course Interactive operation at least one times must be carried out between user and server;For input frame association mode, in some webpage, only exist When user name frame obtains focus, just below the user name frame of this webpage, password box can occur, user name frame in this course When not obtaining focus, password box input function does not enable, and not only increases the interaction times between user and server, also will lead The web browsing experience at family of applying is substantially reduced.
In view of this, trigger page script the most in advance, reduce the interaction times between user and server, promote user Web browsing experience, become the problem needing solution now badly.
Summary of the invention
It is an object of the invention to provide a kind of equipment and method that page script in the page is carried out pre-trigger process.
According to an aspect of the present invention, it is provided that a kind of method that page script in the page is processed, the method Comprise the following steps:
A obtains the accession page intending being supplied to subscriber equipment, and wherein, described accession page includes page script;
B, according to the script relevant information of described page script, carries out matching inquiry in script mode storehouse, with retrieval and institute State the pre-trigger operation information that page script is corresponding;
C, when retrieval obtains described pre-trigger operation information, operates information according to described pre-trigger, to described page script Carry out pre-trigger process, to obtain the results page corresponding with described accession page;
Described results page is provided to described subscriber equipment by d.
According to another aspect of the present invention, a kind of net that page script in accession page is processed is additionally provided Network equipment, this equipment includes:
Page acquisition device, for obtaining the accession page intending being supplied to subscriber equipment, wherein, described accession page includes Page script;
Coalignment, for the script relevant information according to described page script, carries out coupling in script mode storehouse and looks into Ask, with the pre-trigger operation information that retrieval is corresponding with described page script;
Processing means is for when retrieval obtains described pre-trigger operation information, operating information according to described pre-trigger, right Described page script carries out pre-trigger process, to obtain the results page corresponding with described accession page;
There is provided device, for providing described results page to described subscriber equipment.
Compared with prior art, the present invention, according to the script relevant information of page script, retrieves and described page script phase Corresponding pre-trigger operation information, and then described page script is carried out pre-trigger process to obtain results page, thus can be bright Reduce the interaction times between user and server aobviously, promote the web browsing experience of user.
Accompanying drawing explanation
By the detailed description that non-limiting example is made made with reference to the following drawings of reading, other of the present invention Feature, purpose and advantage will become more apparent upon:
Fig. 1 illustrates the equipment for the page script in the page carries out pre-trigger process according to one aspect of the invention Schematic diagram;
Fig. 2 illustrate in accordance with a preferred embodiment of the present invention for the page script in the page is carried out pre-trigger process Equipment schematic diagram;
Fig. 3 illustrates the side for the page script in the page carries out pre-trigger process according to a further aspect of the present invention Method flow chart;
Fig. 4 illustrate according to another preferred embodiment of the present invention for the page script in the page is carried out at pre-trigger The method flow diagram of reason.
In accompanying drawing, same or analogous reference represents same or analogous parts.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is described in further detail.
Fig. 1 illustrates the equipment for the page script in the page carries out pre-trigger process according to one aspect of the invention Schematic diagram.Wherein, the network equipment 1 includes but not limited to computer, network host, single network server, multiple network service The cloud that device collection or multiple server are constituted.Here, cloud is by a large amount of computers based on cloud computing (Cloud Computing) or net Network server is constituted, and wherein, cloud computing is the one of Distributed Calculation, be made up of a group loosely-coupled computer collection Super virtual machine.Those skilled in the art will be understood that the above-mentioned network equipment is only for example, and other are existing or from now on may be used The network equipment that can occur such as is applicable to the present invention, within also should being included in scope, and with way of reference bag It is contained in this.
With reference to Fig. 1, the described network equipment 1 includes page acquisition device 11, coalignment 12, processing means 13 and provides dress Put 14.Specifically, the page acquisition device 11 of the described network equipment 1 obtains the accession page intending being supplied to subscriber equipment, described Accession page includes page script;Coalignment 12 is according to the script relevant information of described page script, in script mode storehouse Carry out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script;Processing means 13 is in described coupling When device 12 retrieval obtains described pre-trigger operation information, operate information according to described pre-trigger, described page script is carried out Pre-trigger processes, to obtain the results page corresponding with described accession page;There is provided device 14 by described processing means 13 institute Obtain results page to provide to described subscriber equipment.
Page acquisition device 11 obtains the accession page intending being supplied to subscriber equipment, and wherein, described accession page includes page Face script.Specifically, the application program that described page acquisition device 11 is such as provided by third party devices such as search engines Interface (API) or the communication mode of agreement, obtain from this third party device and intend being supplied to the accession page of subscriber equipment, wherein, Described accession page includes page script;Or, the page that described page acquisition device 11 sends according to described subscriber equipment is visited Ask request, receive the access page being supplied to subscriber equipment from page server based on the plan acquired in described accessing page request Face, wherein, described accession page includes page script.Here, described communication mode include but not limited to based on 3GPP, LTE, The mobile communication of WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, infrared transmission standard Close range wireless communication modes etc..Those skilled in the art will be understood that above-mentioned acquisition is intended being supplied to subscriber equipment and comprising the page The mode of the accession page of script is only for example, other existing or acquisitions of being likely to occur from now on intend being supplied to subscriber equipment and The mode of the accession page comprising page script is such as applicable to the present invention, within also should being included in scope, and It is incorporated herein with way of reference.
Coalignment 12, according to the script relevant information of described page script, carries out matching inquiry in script mode storehouse, With the pre-trigger operation information that retrieval is corresponding with described page script.Specifically, coalignment 12 is according to page acquisition device 11 plans obtained are supplied to the page script in the accession page of subscriber equipment and this accession page, by such as to this page Script and/or this accession page carry out the modes such as dissection process, obtain the script relevant information in described page script, such as institute State the thing corresponding to the element type information of page script, the function keyword message of described page script, described page script Part type information etc., and in script mode storehouse, carry out matching inquiry by the script relevant information of described page script, with Retrieve the pre-trigger operation information corresponding with described page script, such as show the checking picture corresponding to identifying code, activation Input window, switching page-tag etc..For example, it is assumed that the plan that page acquisition device 11 obtains is supplied to the access of subscriber equipment Containing one section of page script in the page, described page script is used for showing the checking picture corresponding with identifying code, here, do not having Have described page script is carried out any process time, user only triggers corresponding mouse click event in described accession page The checking picture corresponding with described identifying code can be shown;Coalignment 12 in the described network equipment 1 is according to described page The script relevant information of face script, carries out matching inquiry in script mode storehouse, and includes above-mentioned in described script mode storehouse During mapping relations between page script and pre-trigger operation information, retrieval obtains the pre-trigger corresponding with described page script Operation information;Or, do not include that in described script mode storehouse the mapping between above-mentioned page script and pre-trigger operation information is closed When being, retrieval does not obtains the pre-trigger operation information corresponding with described page script.Here, described script mode stock contains Mapping relations between page script and pre-trigger operation information;It includes the script mode storehouse in the described network equipment 1, passes through Script mode storehouse in the third party device that network is connected with the described network equipment 1.Those skilled in the art will be understood that State the script relevant information according to described page script in script mode storehouse, to carry out the mode of matching inquiry be only for example, other The script relevant information according to described page script that is existing or that be likely to occur from now on carries out coupling in script mode storehouse and looks into The mode ask such as is applicable to the present invention, within also should being included in scope, and is incorporated herein with way of reference.
Processing means 13, when coalignment 12 retrieval obtains described pre-trigger operation information, operates according to described pre-trigger Information, carries out pre-trigger process to described page script, to obtain the results page corresponding with described accession page.Specifically Ground, the script relevant information of described page script is carried out matching inquiry in script mode storehouse by described coalignment 12, to obtain Pre-trigger that must be corresponding with described page script operates information;Described processing means 13 obtains in the retrieval of described coalignment 12 During described pre-trigger operation information, operate information according to described pre-trigger, described page script is carried out pre-trigger process, to obtain Results page that must be corresponding with described accession page.Such as, obtain and described page script when the retrieval of described coalignment 12 When corresponding pre-trigger operation information includes showing the checking picture corresponding with identifying code, processing means 13 is according to this pre-trigger Operation information, carries out pre-trigger process to described page script, is shown in advance by the described checking picture in described accession page, Thus shown the results page of checking picture.Knowable to the operating process that described processing means 13 performs, it is provided that extremely The results page of described subscriber equipment has shown that the checking picture corresponding with described identifying code, and user only need to be at identifying code Input frame directly inputs;By contrast, prior art does not carries out pre-trigger process to page script, it is provided that extremely The accession page of described subscriber equipment does not shows the checking picture corresponding with described identifying code, and user only performs such as mouse Described checking picture just can be seen after the operation such as click event or keypad input event.Thus, the described network equipment 1 is based on described The pre-trigger of page script processes and can significantly reduce the interactive operation number of times between user and server, promotes user's Web browsing experience.Here, the pre-trigger that carries out described page script processes, grasped with those skilled in the art described in The existing triggering processing mode of page script, such as, start when trigger condition corresponding to described page script being detected that perform should Page script.Identical or essentially identical.Such as, the pre-trigger carried out described page script processes and includes but not limited to: directly Start and perform this page script;Or simulate the trigger event corresponding to this page script, and when described page script being detected Start during corresponding trigger condition and perform this page script;Or simulating the triggering signal corresponding to this trigger event, startup is held This page script of row.Those skilled in the art will be understood that above-mentioned according to described pre-trigger operation information described page script is entered Row pre-trigger processes and is only for example in the way of obtaining the results page corresponding with described accession page, and other are existing or modern After be likely to occur according to described pre-trigger operation information, described page script carried out pre-trigger and processes to obtain and described visit Ask that the mode of the corresponding results page of the page is such as applicable to the present invention, within also should being included in scope, and It is incorporated herein with way of reference.
Device 14 is provided to provide described results page to described subscriber equipment.Specifically, by processing means 13 to institute State page script and carry out pre-trigger process, after obtaining described results page, it is provided that device 14 is carried by the such as network equipment 1 The application programming interfaces (API) of confession or the communication mode of agreement, such as http or https, be supplied to described by described results page Subscriber equipment.Here, described communication mode includes but not limited to: mobile communication based on 3GPP, LTE, WIMAX;Based on TCP/ IP, the computer network communication of udp protocol;Based on bluetooth, the near radio transmission means etc. of infrared transmission standard.Described net Network includes but not limited to the Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN, wireless self-organization network (Ad Hoc network) Deng.Those skilled in the art will be understood that the above-mentioned mode by described results page offer to described subscriber equipment is only for example, Other modes providing described results page to described subscriber equipment that are existing or that be likely to occur from now on are such as applicable to this Invention, within also should being included in scope, and is incorporated herein with way of reference.
Preferably, page acquisition device 11, coalignment 12, processing means 13 and offer device 14 are constant work 's.Specifically, the page acquisition device 11 of the described network equipment 1 persistently obtains the accession page intending being supplied to subscriber equipment, institute State accession page and include page script;Then, coalignment 12 continues the script relevant information according to described page script, at foot This library carries out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script;Then, dress is processed Put 13 to continue, when the retrieval of described coalignment 12 obtains described pre-trigger operation information, to operate information according to described pre-trigger, Described page script is carried out pre-trigger process, to obtain the results page corresponding with described accession page;Finally, it is provided that dress Put 14 results page persistently described processing means 13 obtained to provide to described subscriber equipment.Here, people in the art Member is it should be understood that " continuing " refers to page acquisition device 11, coalignment 12, processing means 13 and provide device 14 the most persistently to enter Row obtains plan and is supplied to the accession page of subscriber equipment, retrieves pre-trigger operation information, the root corresponding with described page script Operate information according to described pre-trigger and described page script is carried out pre-trigger process, and the results page obtained is provided extremely Described subscriber equipment, until the network equipment 1 stops obtaining the accession page intending being supplied to subscriber equipment, this visit in a long time Ask that the page includes page script.
In a preferred embodiment (with reference to Fig. 1), described processing means 13 includes detector unit (not shown) and process Unit (not shown), wherein, described detector unit, when the retrieval of described coalignment 12 obtains described pre-trigger operation information, is examined Surveying and whether meet the trigger condition that described page script carries out pre-trigger process, described processing unit is examined in described detector unit When surveying as meeting described trigger condition, operate information according to described pre-trigger, described page script is carried out pre-trigger process, with Obtain described results page.Being described in detail the preferred embodiment referring to Fig. 1, wherein, page acquisition device 11 obtains Taking the accession page intending being supplied to subscriber equipment, described accession page includes page script, and then coalignment 12 is according to described The script relevant information of page script, carries out matching inquiry in script mode storehouse, corresponding with described page script with retrieval Pre-trigger operation information, then the detector unit in processing means 13 described coalignment 12 retrieval obtain described pre-trigger During operation information, detect whether to meet the trigger condition that described page script is carried out pre-trigger process, and processing means 13 In processing unit when described detector unit is detected as meeting described trigger condition, according to described pre-trigger operate information, right Described page script carries out pre-trigger process, to obtain described results page, finally provides the result page that device 14 will be obtained Face provides to described subscriber equipment.Its detailed process and page acquisition device 11 in the aforementioned embodiment with reference to described by Fig. 1, Equipped put 12 and offer device 14 performed by process identical, for simplicity's sake, be incorporated herein with way of reference, and do not do superfluous State.
Preferably, described trigger condition includes following at least any one:
1) described accession page comprises the pending binding event corresponding with described page script;
2) in described accession page, the display properties corresponding with described page script is entered as sky.
1) include described accession page comprises with described trigger condition corresponding with described page script pending As a example by binding event, when described coalignment 12 is according to the script relevant information of described page script, enter in script mode storehouse Row matching inquiry, retrieval obtains the pre-trigger operation information corresponding with described page script, and such as display is relative with identifying code The checking picture answered;Assume that the pending binding event corresponding with described page script includes showing identifying code input frame, Described detector unit is after the retrieval of described coalignment 12 obtains described pre-trigger operation information (display checking picture), and detection is The no satisfied trigger condition that described page script carries out pre-trigger process, i.e. detects in described accession page whether comprise display The binding event of identifying code input frame, such as when described accession page comprises display identifying code input frame, the most described detection Unit is detected as meeting the trigger condition that described page script carries out pre-trigger process;Then, described processing unit is according to institute State pre-trigger operation information and described page script is carried out pre-trigger process, the as will be described described checking picture in accession page Show in advance, thus shown the results page of checking picture.Here, described detector unit is by such as to this access Page script and/or this accession page in the page carry out whether the modes such as dissection process comprise to detect in described accession page The pending binding event corresponding with described page script.
2) display properties assignment corresponding with described page script in described accession page is included with described trigger condition For sky as example, when coalignment 12 retrieval obtains the pre-trigger operation information corresponding with described page script, such as show When showing the checking picture corresponding with identifying code;Described detector unit triggers described page script and generates identifying code control, and examines Survey whether the display properties assignment in described identifying code control is empty, the display properties src assignment in such as detection html file Or it is with or without property value and corresponding with described page script in described accession page to detect the vvcode in PHP file When display properties is entered as sky, described detector unit is detected as meeting the triggering bar that described page script carries out pre-trigger process Part, the most described processing unit operates information according to described pre-trigger, described page script is carried out pre-trigger process, to obtain Show the results page of checking picture.
Preferably, described processing unit is when being unsatisfactory for described trigger condition, using described accession page as described result The page.Specifically, described detector unit, when obtaining described pre-trigger operation information by the retrieval of described coalignment 12, detects For being unsatisfactory for carrying out described page script the trigger condition of pre-trigger process, described accession page is made by the most described processing unit For described results page.Such as, the retrieval of described coalignment 12 is such as shown the institute of the checking picture corresponding to identifying code After stating pre-trigger operation information, described detector unit operates infomation detection for being unsatisfactory for described page foot according to described pre-trigger Originally carrying out the trigger condition of pre-trigger process, such as, checking picture has been shown in described accession page and without to institute State page script carry out pre-trigger process time, described processing unit using described accession page as described results page.
Preferably, described script mode storehouse includes following at least any one:
1) identifying code pattern to be shown;
2) input window pattern to be activated;
3) the to be switched pattern of page-tag.
1) include as a example by identifying code pattern to be shown by described script mode storehouse, when described page acquisition device 11 such as leads to Cross application programming interfaces (API) or the communication mode of agreement that the third party devices such as search engine are provided, set from this third party The standby plan that obtains is supplied to the accession page of described subscriber equipment, and when described accession page includes page script, coalignment 12, according to the script relevant information of described page script, carry out matching inquiry in script mode storehouse, with retrieval and the described page The pre-trigger operation information that script is corresponding.Such as, when described page script is corresponding to display checking picture, described coalignment 12 according to the script relevant information of described page script, and in script mode storehouse, matching inquiry is to corresponding with described page script Identifying code pattern to be shown, and according to corresponding to identifying code pattern to be shown described in this script mode storehouse pre-trigger operate Information, obtains the pre-trigger operation information that described page script is corresponding.Then, processing means 13 is examined at described coalignment 12 When rope is to described pre-trigger operation information, operates information according to described pre-trigger, described page script carried out pre-trigger process, To obtain the results page corresponding with described accession page, finally, it is provided that described processing means 13 is obtained by device 14 Results page provides to described subscriber equipment.
2) include as a example by input window pattern to be activated by described script mode storehouse, when described page acquisition device 11 such as The application programming interfaces (API) provided by third party devices such as search engines or the communication mode of agreement, from this third party Equipment obtains the accession page intending being supplied to described subscriber equipment, and when described accession page includes page script, coupling dress Put 12 according to the script relevant information of described page script, script mode storehouse carries out matching inquiry, with retrieval and described page The pre-trigger operation information that face script is corresponding.Such as, when described page script is corresponding to activating input window, described coupling fills Putting 12 according to the script relevant information of described page script, in script mode storehouse, matching inquiry is to relative with described page script The input window pattern to be activated answered, and according to corresponding to input window pattern to be activated described in this script mode storehouse pre-touch Sending out operation information, obtain the pre-trigger operation information that described page script is corresponding, such as, described processing means 13 is according to described Pre-trigger operation information, by the user name input frame under the state of activation corresponding with described page script and Password Input frame one And show in described accession page, and described offer device 14 is defeated by comprising the described user name having been shown as state of activation The results page entering frame and Password Input frame is supplied to subscriber equipment.
3) include as a example by the to be switched pattern of page-tag by described script mode storehouse, when described page acquisition device 11 such as The application programming interfaces (API) provided by third party devices such as search engines or the communication mode of agreement, from this third party Equipment obtains the accession page intending being supplied to described subscriber equipment, and when described accession page includes page script, coupling dress Put 12 according to the script relevant information of described page script, script mode storehouse carries out matching inquiry, with retrieval and described page The pre-trigger operation information that face script is corresponding.Such as, when described page script is corresponding to switching page-tag, described coupling fills Putting 12 according to the script relevant information of described page script, in script mode storehouse, matching inquiry is to relative with described page script The to be switched pattern of page-tag answered, and according to corresponding to the to be switched pattern of page-tag described in this script mode storehouse pre-touch Sending out operation information, obtain the pre-trigger operation information that described page script is corresponding, such as, described processing means 13 is according to described Pre-trigger operation information, by the data message under the new page label after the page-tag switching corresponding with described page script Display is in described accession page, and the result of data message that described offer device 14 will comprise under described new page label The page is supplied to subscriber equipment.Those skilled in the art will be understood that the pattern included by above-mentioned script mode storehouse is only for example, Other patterns in script mode storehouse that are existing or that be likely to occur from now on are such as applicable to the present invention, also should be included in the present invention and protect Within protecting scope, and it is incorporated herein with way of reference.
Preferably, described script relevant information includes following at least any one:
1) the element type information of described page script;
2) the function keyword message of described page script;
3) event type information corresponding to described page script.
1) include as a example by the element type information of described page script by described script relevant information, when the described page obtains Device 11 such as passes through application programming interfaces (API) or the communication mode of agreement that the third party devices such as search engine are provided, The accession page intending being supplied to subscriber equipment is obtained from this third party device, and when described accession page includes page script, Coalignment 12 is by such as resolving described page script and/or described accession page, to obtain described page script Element type information, and in described script mode storehouse, carry out coupling according to the element type information of described page script and look into Ask, with the pre-trigger operation information that retrieval is corresponding with described page script.
2) include as a example by the function keyword message of described page script by described script relevant information, when the described page obtains Fetching puts 11 application programming interfaces (API) such as provided or the communication party of agreement by third party devices such as search engines Formula, obtains the accession page intending being supplied to subscriber equipment from this third party device, and described accession page includes page script Time, coalignment 12 is by such as resolving described page script and/or described accession page, to obtain described page foot This function keyword message, and carry out in described script mode storehouse according to the function keyword message of described page script Join inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.
3) as a example by described script relevant information includes the event type information corresponding to described page script, when described page Face acquisition device 11 such as passes through application programming interfaces (API) or the communication of agreement that the third party devices such as search engine are provided Mode, obtains the accession page intending being supplied to subscriber equipment from this third party device, and described accession page includes page foot This time, coalignment 12 by such as to described page script and or described accession page resolve, to obtain the described page Event type information corresponding to script, and according to the event type information corresponding to described page script in described script mode Storehouse carries out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.Preferably, coalignment 12 By such as described page script being carried out code analysis, to obtain any of the above-mentioned script relevant information of described page script Combination, and carries out matching inquiry according to the combination in any of described script relevant information in described script mode storehouse, with retrieval with The pre-trigger operation information that described page script is corresponding.Those skilled in the art will be understood that above-mentioned script relevant information is only Citing, other script relevant informations that are existing or that be likely to occur from now on are such as applicable to the present invention, also should be included in the present invention Within protection domain, and it is incorporated herein with way of reference.
Preferably, described page script is based on following at least any of script:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
Above-mentioned HTML, XML, JavaScript, AJAX, PHP and ASPX script all can constitute described page script, As a example by described page script is based on JavaScript script, by described JavaScript, can be used for as html web page Add dynamic function, such as respond the various operations from user.Described page acquisition device 11 is such as by search engine etc. Application programming interfaces (API) that third party device is provided or the communication mode of agreement, obtain from this third party device and intend providing To the accession page of subscriber equipment, described accession page includes page script based on any of the above-described kind of script, and institute State the network equipment 1 to be identified based on to the script mode of described page script, to retrieve corresponding pre-trigger operation information, And according to described pre-trigger operation information, selectively described page script is carried out pre-trigger process, thus providing with described While the results page that accession page is corresponding, reduce the interaction times between user and server, promote the webpage of user Viewing experience.Those skilled in the art will be understood that above-mentioned script is only for example, and other are existing or are likely to occur from now on Script be such as applicable to the present invention, within also should being included in scope, and be incorporated herein with way of reference.
Fig. 2 illustrate in accordance with a preferred embodiment of the present invention for the page script in the page is carried out pre-trigger process Equipment schematic diagram.Wherein, the network equipment 1 ' includes but not limited to computer, network host, single network server, multiple net The cloud that network server set or multiple server are constituted.Here, cloud is by a large amount of calculating based on cloud computing (Cloud Computing) Machine or the webserver are constituted, and wherein, cloud computing is the one of Distributed Calculation, is made up of a group loosely-coupled computer collection A super virtual machine.Those skilled in the art will be understood that the above-mentioned network equipment is only for example, other existing or The network equipment being likely to occur from now on is such as applicable to the present invention, within also should being included in scope, and to quote Mode is incorporated herein.Wherein, the described network equipment 1 ' include page acquisition device 11 ', coalignment 12 ', processing means 13 ' and Device 14 ' is provided.
In the network equipment 1 ' shown in Fig. 2, page acquisition device 11 ', coalignment 12 ' and offer device 14 ' are respectively Same or similar with the page acquisition device 11 shown in Fig. 1, coalignment 12 and offer device 14, for the sake of describing simplicity, therefore Here is omitted, and is incorporated herein by way of reference.
Different from the processing means 13 shown in Fig. 1, the processing means 13 ' in Fig. 2 does not obtains in the retrieval of described coalignment 12 ' During to described pre-trigger operation information, the accession page obtained by described page acquisition device 11 ' is as described results page. For example, it is assumed that the plan that page acquisition device 11 ' obtains is supplied in the accession page of subscriber equipment containing one section of page script, institute State page script for showing the checking picture corresponding with identifying code;Coalignment 12 ' basis in the described network equipment 1 ' The script relevant information of described page script, carries out matching inquiry in script mode storehouse, and in described script mode storehouse not When operating information including the pre-trigger corresponding with this page script, the retrieval of this coalignment 12 ' does not obtains and described page foot This corresponding pre-trigger operation information;Described page acquisition device 11 ' is obtained access page by the most described processing means 13 ' Face is as described results page;And described results page is provided to described subscriber equipment by described offer device 14 '.Here, Described script mode stock contains the mapping relations between page script and pre-trigger operation information;It includes the described network equipment Script mode storehouse in script mode storehouse in 1 ', the third party device being connected with the described network equipment 1 ' by network.
In a preferred embodiment (with reference to Fig. 2), the described network equipment 1 ' also includes the first acquisition device 15 ', compares dress Putting 16 ' and updating device 17 ', wherein, described first acquisition device 15 ' obtains with described subscriber equipment based on described results page Corresponding the second accession page of access request sent, the most described comparison means 16 ' is by described accession page and described the Two accession pages compare, to obtain the mapping relations of described page script and described pre-trigger operation information and described Updating device 17 ' is set up according to the mapping relations of the new described page script obtained with described pre-trigger operation information or updates Described script mode storehouse.Being described in detail the preferred embodiment referring to Fig. 2, wherein, page acquisition device 11 ' is such as The application programming interfaces (API) provided by third party devices such as search engines or the communication mode of agreement, from this third party Equipment obtains the accession page intending being supplied to subscriber equipment, and described accession page includes page script, then coalignment 12 ' root According to the script relevant information of described page script, script mode storehouse carries out matching inquiry, with retrieval and described page script Corresponding pre-trigger operation information, then processing means 13 ' does not obtains described pre-trigger behaviour in the detection of described coalignment 12 ' When making information, the accession page obtained by described page acquisition device 11 ' is as described results page, and described offer fills Put 14 ' to provide described results page to described subscriber equipment.Then, described first acquisition device 15 ' obtains and described user The second accession page that access request that equipment sends based on described results page is corresponding, the most described comparison means 16 ' will Described accession page compares with described second accession page, such as, compare the display state of corresponding page elements in both Change, to obtain the mapping relations of described page script and described pre-trigger operation information, and described updating device 17 ' basis The new described page script obtained is set up with the mapping relations that described pre-trigger operates information or updates described script mode storehouse. Therefore, the most described coalignment 12 ' is according to the script relevant information of described page script, the foot after setting up or updating This library carries out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script, then processes dress Put 13 ' described coalignment 12 ' detection obtain described pre-trigger operation information time, according to described pre-trigger operate information, right Described page script carries out pre-trigger process, to obtain the results page corresponding with described accession page, last described offer Described results page is provided to described subscriber equipment by device 14 '.Its detailed process and the aforementioned reference embodiment described by Fig. 2 Middle page acquisition device 11 ', coalignment 12 ' are identical, for simplicity's sake, to quote with the process performed by offer device 14 ' Mode is incorporated herein, and does not repeats.
Preferably, the described network equipment 1 ' also includes analytical equipment (not shown), and described analytical equipment is to candidate page foot This carries out cluster analysis, to obtain described candidate page script with one or more groups corresponding relation of candidate's pre-trigger operation information Candidate mappings relation with candidate's pre-trigger operation information;Then, described updating device 17 ' according to described candidate mappings relation, Set up or update described script mode storehouse.Specifically, candidate page script corresponding relation being existed for one or more groups and time Selecting pre-trigger to operate information, analytical equipment, by modes such as such as page parsing, obtains the foot that described candidate page script is corresponding This describes sequence, then operates the time of information structure to being described sequence and candidate's pre-trigger by the script corresponding to candidate page script Select vector to carry out cluster analysis, obtain the cluster description vectors of one or more cluster and correspondence thereof, and then clustered by each Description vectors determines that the part that in candidate mappings relation, i.e. this cluster description vectors, corresponding script describes sequence describes with this cluster In vector, corresponding candidate's pre-trigger operates the candidate mappings relation between the part of information;Then, updating device 17 ' is according to described Candidate mappings relation, sets up or updates described script mode storehouse.Grasp preferably for corresponding to same or like candidate's pre-trigger Making the candidate page script of information, analytical equipment, by modes such as such as page parsing, obtains described candidate page script corresponding Script sequence described, then these scripts described sequence carry out cluster analysis, obtain one or more cluster and correspondence thereof Cluster describes sequence, and then determines that the candidate that each cluster describes between candidate's pre-trigger operation information that sequence is corresponding is reflected Penetrate relation.Here, cluster analysis operates adoptable algorithm includes but not limited to hierarchical clustering method, decomposition method, addition method, dynamically Clustering procedure, clustering ordered samples, there are overlapping cluster and fuzzy clustering etc..Use this analytical equipment, when page acquisition device 11 ' is all As the application programming interfaces (API) provided by third party devices such as search engines or agreement communication mode, from the 3rd Method, apparatus obtains when intending being supplied to subscriber equipment and including the accession page of page script, and described coalignment 12 ' is according to described The script relevant information of page script carries out the matching capacity in the script mode storehouse of matching inquiry can be increasingly stronger, that is, described In script mode storehouse, such as mapping relations between candidate page script and candidate's pre-trigger operation information can be more and more abundanter, because of And the network equipment of the present invention can carry out matching inquiry according to the script relevant information of page script in script mode storehouse, with inspection The pre-trigger operation information that rope is corresponding with described page script, and direct when retrieval obtains described pre-trigger operation information Described page script carries out pre-trigger process and obtain results page, in order to greatly reduce between user and server is mutual Number of times, promotes the web browsing experience of user.Those skilled in the art will be understood that above-mentioned pre-with candidate to candidate page script One or more groups corresponding relation of trigger action information carries out cluster analysis, and to obtain, described candidate page script is pre-with candidate to be touched The mode of candidate mappings relation sending out operation information is only for example, other existing or be likely to occur from now on to candidate page foot This carries out cluster analysis to obtain described candidate page script with one or more groups corresponding relation of candidate's pre-trigger operation information Such as it is applicable to the present invention with the mode of the candidate mappings relation of candidate's pre-trigger operation information, also should be included in present invention protection Within scope, and it is incorporated herein with way of reference.
Fig. 3 illustrates the side for the page script in the page carries out pre-trigger process according to a further aspect of the present invention Method flow chart.Wherein, the network equipment being used for carrying out the page script in the page pre-trigger process includes but not limited to calculate The cloud that machine, network host, single network server, multiple webserver collection or multiple server are constituted.Here, cloud by based on A large amount of computers of cloud computing (Cloud Computing) or the webserver are constituted, and wherein, cloud computing is Distributed Calculation One, the super virtual machine being made up of a group loosely-coupled computer collection.
With reference to Fig. 3, in step sl, the network equipment obtains the accession page intending being supplied to subscriber equipment, wherein, described visit Ask that the page includes page script.Specifically, the described network equipment is such as by answering that the third party devices such as search engine are provided With routine interface (API) or the communication mode of agreement, obtain the accession page intending being supplied to subscriber equipment from this third party device, Wherein, described accession page includes page script;Or, the page access that the described network equipment sends according to described subscriber equipment Request, receives the access page being supplied to subscriber equipment from page server based on the plan acquired in described accessing page request Face, wherein, described accession page includes page script.Here, described communication mode include but not limited to based on 3GPP, LTE, The mobile communication of WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, infrared transmission standard Close range wireless communication modes etc..Those skilled in the art will be understood that above-mentioned acquisition is intended being supplied to subscriber equipment and comprising the page The mode of the accession page of script is only for example, other existing or acquisitions of being likely to occur from now on intend being supplied to subscriber equipment and The mode of the accession page comprising page script is such as applicable to the present invention, within also should being included in scope, and It is incorporated herein with way of reference.
In step s 2, the described network equipment is according to the script relevant information of described page script, in script mode storehouse Carry out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.Specifically, described network equipment root It is supplied to the page script in the accession page of subscriber equipment and this accession page, by such as according to the plan obtained in step S1 This page script and/or this accession page are carried out the modes such as dissection process, obtains the relevant letter of the script in described page script Breath, the element type information of the most described page script, the function keyword message of described page script, described page script institute Corresponding event type information etc., and mated in script mode storehouse by the script relevant information of described page script Inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script, such as shows the proof diagram corresponding to identifying code Sheet, activation input window, switching page-tag etc..For example, it is assumed that the plan that the described network equipment obtains is supplied to subscriber equipment Accession page in containing one section of page script, described page script is used for showing the checking picture corresponding with identifying code, This, when described page script does not carry out any process, user only triggers corresponding mouse in described accession page Click event can show the checking picture corresponding with described identifying code;The described network equipment is in step s 2 according to described The script relevant information of page script, carries out matching inquiry in script mode storehouse, and includes in described script mode storehouse When stating the mapping relations between page script and pre-trigger operation information, retrieval obtains corresponding with described page script pre-touch Send out operation information;Or, do not include the mapping between above-mentioned page script and pre-trigger operation information in described script mode storehouse During relation, retrieval does not obtains the pre-trigger operation information corresponding with described page script.Here, described script mode library storage There are the mapping relations between page script and pre-trigger operation information;It includes the script mode storehouse in the described network equipment, leads to Cross the script mode storehouse in the third party device that network is connected with the described network equipment.Those skilled in the art will be understood that State the script relevant information according to described page script in script mode storehouse, to carry out the mode of matching inquiry be only for example, other The script relevant information according to described page script that is existing or that be likely to occur from now on carries out coupling in script mode storehouse and looks into The mode ask such as is applicable to the present invention, within also should being included in scope, and is incorporated herein with way of reference.
In step s3, the described network equipment is when retrieval obtains described pre-trigger operation information, according to described pre-trigger Operation information, carries out pre-trigger process to described page script, to obtain the results page corresponding with described accession page.Tool Body ground, the script relevant information of described page script is carried out matching inquiry in script mode storehouse by the described network equipment, to obtain Pre-trigger that must be corresponding with described page script operates information;Then, in step s3, the retrieval of the described network equipment obtains institute When stating pre-trigger operation information, operate information according to described pre-trigger, described page script is carried out pre-trigger process, to obtain The results page corresponding with described accession page.Such as, retrieve in step s 2 when the described network equipment and obtain and described page When script corresponding pre-trigger operation information in face includes showing corresponding with identifying code checking picture, the described network equipment is in step Rapid S3 operates information according to this pre-trigger, described page script is carried out pre-trigger process, by the institute in described accession page State checking picture to show in advance, thus shown the results page of checking picture.The behaviour performed from the described network equipment Process of making understands, it is provided that the results page to described subscriber equipment has shown that the proof diagram corresponding with described identifying code Sheet, user only need to directly input in identifying code input frame;By contrast, page script is not entered by prior art Row pre-trigger processes, it is provided that the accession page to described subscriber equipment does not shows the checking picture corresponding with described identifying code, User just can see described checking picture after only performing the such as operation such as mouse click event or keypad input event.Thus, Described network equipment pre-trigger based on described page script processes can significantly reduce the friendship between user and server Interoperability number of times, promotes the web browsing experience of user.Here, the pre-trigger carrying out described page script processes, with ability The existing triggering processing mode of the described page script that field technique personnel are grasped, such as when detecting that described page script is corresponding Trigger condition time start perform this page script.Identical or essentially identical.Such as, the pre-trigger described page script carried out Process includes but not limited to: directly initiate this page script of execution;Or simulate the trigger event corresponding to this page script, and Start when trigger condition corresponding to described page script being detected and perform this page script;Or it is right to simulate this trigger event institute The triggering signal answered, starts and performs this page script.Those skilled in the art will be understood that and above-mentioned operate according to described pre-trigger Information carries out pre-trigger and only processes in the way of obtaining the results page corresponding with described accession page described page script For citing, other existing or be likely to occur from now on according to described pre-trigger operation information, described page script carried out pre-touching Send out to process and be such as applicable to the present invention in the way of obtaining the results page corresponding with described accession page, also should be included in this Within invention protection domain, and it is incorporated herein with way of reference.
In step s 4, described results page is provided to described subscriber equipment by the described network equipment.Specifically, by step Rapid S3 carries out pre-trigger process to described page script, after obtaining described results page, the described network equipment by such as its The application programming interfaces (API) self provided or the communication mode of agreement, such as http or https, carry described results page Supply described subscriber equipment.Here, described communication mode includes but not limited to: mobile communication based on 3GPP, LTE, WIMAX; Based on TCP/IP, the computer network communication of udp protocol;Based on bluetooth, the near radio transmission means of infrared transmission standard Deng.Described network includes but not limited to the Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN, wireless self-organization network (Ad Hoc network) etc..Those skilled in the art only will be understood that the above-mentioned mode by described results page offer to described subscriber equipment For citing, other modes providing described results page to described subscriber equipment that are existing or that be likely to occur from now on such as can be fitted For the present invention, within also should being included in scope, and it is incorporated herein with way of reference.
In a preferred embodiment (with reference to Fig. 3), described step S3 includes detecting step S31 (not shown) and processes step Rapid S32 (not shown), wherein, when the retrieval of the described network equipment obtains described pre-trigger operation information, in step S31, detection is The no satisfied trigger condition that described page script is carried out pre-trigger process, then when being detected as meeting described trigger condition, Operate information according to described pre-trigger in step s 32, described page script is carried out pre-trigger process, to obtain described result The page.Being described in detail the preferred embodiment referring to Fig. 3, wherein, the described network equipment is obtained by step S1 to be intended Being supplied to the accession page of subscriber equipment, described accession page includes page script, then in step S2 according to described page foot This script relevant information, carries out matching inquiry in script mode storehouse, with pre-tactile corresponding with described page script of retrieval Send out operation information, then when retrieval obtains described pre-trigger operation information, detect whether to meet described page in step S31 Face script carries out the trigger condition of pre-trigger process, and when being detected as meeting described trigger condition, basis in step S32 Described pre-trigger operation information, carries out pre-trigger process to described page script, to obtain described results page, and last described net The results page obtained is provided to described subscriber equipment by network equipment in step s 4.Its detailed process and aforementioned reference Fig. 3 Step S1 in described embodiment, step S2 are identical with the process performed by step S4, for simplicity's sake, with way of reference bag It is contained in this, and does not repeats.
Preferably, described trigger condition includes following at least any one:
1) described accession page comprises the pending binding event corresponding with described page script;
2) in described accession page, the display properties corresponding with described page script is entered as sky.
1) include described accession page comprises with described trigger condition corresponding with described page script pending As a example by binding event, in step s 2, when the described network equipment is according to the script relevant information of described page script, at script mould Carrying out matching inquiry in formula storehouse, retrieval obtains the pre-trigger operation information corresponding with described page script, such as shows and tests The checking picture that card code-phase is corresponding;Assume that the pending binding event corresponding with described page script includes showing identifying code Input frame, after retrieval obtains described pre-trigger operation information (display checking picture), the described network equipment detects whether to meet Described page script is carried out the trigger condition of pre-trigger process, i.e. detects and whether described accession page comprises display identifying code The binding event of input frame, such as, when comprising display identifying code input frame in described accession page, the most described network equipment is examined Survey as meeting the trigger condition that described page script is carried out pre-trigger process;Then, in step s 32, the described network equipment According to described pre-trigger operation information, described page script is carried out pre-trigger process, test described in as will be described in accession page Card picture shows in advance, thus has been shown the results page of checking picture.Here, the described network equipment is by the most right Page script in this accession page and/or this accession page carry out the modes such as dissection process and to detect in described accession page are No comprise the pending binding event corresponding with described page script.
2) display properties assignment corresponding with described page script in described accession page is included with described trigger condition For sky as example, when retrieval obtains the pre-trigger operation information corresponding with described page script, such as display and identifying code During corresponding checking picture;The described network equipment triggers described page script and generates identifying code control, and detects described checking Whether the display properties assignment in code control is empty, the display properties src assignment in such as detection html file or detection PHP literary composition Vvcode in part is with or without property value, and display properties assignment corresponding with described page script in described accession page During for sky, the described network equipment is detected as meeting the trigger condition that described page script carries out pre-trigger process, then in step In rapid S32, operate information according to described pre-trigger, described page script is carried out pre-trigger process, show checking to obtain The results page of picture.
Preferably, described processing unit is when being unsatisfactory for described trigger condition, using described accession page as described result The page.Specifically, when retrieval obtains described pre-trigger operation information, the described network equipment is detected as being unsatisfactory for the described page Script carries out the trigger condition of pre-trigger process, then using described accession page as described results page.Such as, obtain in retrieval After such as showing the described pre-trigger operation information verifying picture corresponding to identifying code, the described network equipment is according to described pre-tactile Sending out operation infomation detection is the trigger condition being unsatisfactory for carrying out described page script pre-trigger process, and such as, checking picture is Through display in described accession page and without described page script is carried out pre-trigger process time, described accession page is made For described results page.
Preferably, described script mode storehouse includes following at least any one:
1) identifying code pattern to be shown;
2) input window pattern to be activated;
3) the to be switched pattern of page-tag.
1) include as a example by identifying code pattern to be shown by described script mode storehouse, when the described network equipment is such as by search Application programming interfaces (API) that the third party devices such as engine are provided or the communication mode of agreement, obtain from this third party device Intend being supplied to the accession page of described subscriber equipment, and when described accession page includes page script, in step s 2, described The network equipment, according to the script relevant information of described page script, carries out matching inquiry in script mode storehouse, with retrieval and institute State the pre-trigger operation information that page script is corresponding.Such as, when described page script is corresponding to display checking picture, described net Network equipment according to the script relevant information of described page script, in script mode storehouse matching inquiry to described page script phase Corresponding identifying code pattern to be shown, and according to the pre-trigger corresponding to identifying code pattern to be shown described in this script mode storehouse Operation information, obtains the pre-trigger operation information that described page script is corresponding.Then, described pre-trigger operation letter is being retrieved During breath, the described network equipment operates information according to described pre-trigger in step S3, carries out described page script at pre-trigger Reason, to obtain the results page corresponding with described accession page, finally, the described network equipment will be obtained in step S4 Results page provides to described subscriber equipment.
2) include as a example by input window pattern to be activated by described script mode storehouse, when the described network equipment is such as by searching The communication mode waiting the application programming interfaces (API) that provided of third party device or arranging held up in index, obtains from this third party device Take the accession page intending being supplied to described subscriber equipment, and when described accession page includes page script, in step s 2, institute State the network equipment script relevant information according to described page script, script mode storehouse carry out matching inquiry, with retrieval with The pre-trigger operation information that described page script is corresponding.Such as, when described page script is corresponding to activating input window, described The network equipment according to the script relevant information of described page script, in script mode storehouse matching inquiry to described page script Corresponding input window pattern to be activated, and according to corresponding to input window pattern to be activated described in this script mode storehouse Pre-trigger operation information, obtains the pre-trigger operation information that described page script is corresponding, and such as, the described network equipment is according to institute State pre-trigger operation information, by the user name input frame under the state of activation corresponding with described page script and Password Input frame Show in the lump in described accession page, and the described user name input frame having been shown as state of activation will be comprised and password is defeated The results page entering frame is supplied to subscriber equipment.
3) include as a example by the to be switched pattern of page-tag by described script mode storehouse, when the described network equipment is such as by searching The communication mode waiting the application programming interfaces (API) that provided of third party device or arranging held up in index, obtains from this third party device Take the accession page intending being supplied to described subscriber equipment, and when described accession page includes page script, in step s 2, institute State the network equipment script relevant information according to described page script, script mode storehouse carry out matching inquiry, with retrieval with The pre-trigger operation information that described page script is corresponding.Such as, when described page script is corresponding to switching page-tag, described The network equipment according to the script relevant information of described page script, in script mode storehouse matching inquiry to described page script The to be switched pattern of corresponding page-tag, and according to corresponding to the to be switched pattern of page-tag described in this script mode storehouse Pre-trigger operation information, obtains the pre-trigger operation information that described page script is corresponding, and such as, described network equipment is according to institute State pre-trigger operation information, by the data letter under the new page label after the page-tag switching corresponding with described page script Breath display is in described accession page, and is supplied to the results page of the data message comprised under described new page label use Family equipment.Those skilled in the art will be understood that the pattern included by above-mentioned script mode storehouse is only for example, other existing or The pattern in the script mode storehouse being likely to occur from now on is such as applicable to the present invention, within also should being included in scope, And be incorporated herein with way of reference.
Preferably, described script relevant information includes following at least any one:
1) the element type information of described page script;
2) the function keyword message of described page script;
3) event type information corresponding to described page script.
1) include as a example by the element type information of described page script by described script relevant information, when the described network equipment The application programming interfaces (API) such as provided by the third party device such as search engine or the communication mode of agreement, from this Three method, apparatus obtain the accession page intending being supplied to subscriber equipment, and when described accession page includes page script, in step In S2, the described network equipment is by such as resolving described page script and/or described accession page, to obtain described page The element type information of face script, and carry out in described script mode storehouse according to the element type information of described page script Join inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.
2) include as a example by the function keyword message of described page script by described script relevant information, when described network sets The standby application programming interfaces (API) such as provided by third party devices such as search engines or the communication mode of agreement, from this Third party device obtains the accession page intending being supplied to subscriber equipment, and when described accession page includes page script, in step In rapid S2, the described network equipment is by such as resolving described page script and/or described accession page, described to obtain The function keyword message of page script, and according to the function keyword message of described page script in described script mode storehouse Carry out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.
3) as a example by described script relevant information includes the event type information corresponding to described page script, when described net Network equipment such as passes through application programming interfaces (API) or the communication mode of agreement that the third party devices such as search engine are provided, The accession page intending being supplied to subscriber equipment is obtained from this third party device, and when described accession page includes page script, In step s 2, the described network equipment by such as to described page script and or described accession page resolve, with obtain Event type information corresponding to described page script, and according to the event type information corresponding to described page script described Script mode storehouse carries out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.Preferably, exist In step S2, the described network equipment is by such as carrying out code analysis to described page script, to obtain described page script The combination in any of above-mentioned script relevant information, and according to the combination in any of described script relevant information in described script mode storehouse Carry out matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script.Those skilled in the art should be able to manage Solving above-mentioned script relevant information to be only for example, other script relevant informations that are existing or that be likely to occur from now on are such as applicable to this Invention, within also should being included in scope, and is incorporated herein with way of reference.
Preferably, described page script is based on following at least any of script:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
Above-mentioned HTML, XML, JavaScript, AJAX, PHP and ASPX script all can constitute described page script, As a example by described page script is based on JavaScript script, by described JavaScript, can be used for as html web page Add dynamic function, such as respond the various operations from user.The described network equipment is such as by third parties such as search engines Application programming interfaces (API) that equipment is provided or the communication mode of agreement, obtain plan from this third party device and be supplied to user The accession page of equipment, described accession page includes page script based on any of the above-described kind of script, and described network Equipment is identified based on to the script mode of described page script, to retrieve corresponding pre-trigger operation information, and according to Described pre-trigger operation information selectively carries out pre-trigger process to described page script, thus is providing and described access page While the results page that face is corresponding, reduce the interaction times between user and server, promote the web page browsing body of user Test.Those skilled in the art will be understood that above-mentioned script is only for example, other scripts that are existing or that be likely to occur from now on Language is such as applicable to the present invention, within also should being included in scope, and is incorporated herein with way of reference.
Fig. 4 illustrate in accordance with a preferred embodiment of the present invention for the page script in the page is carried out pre-trigger process Method flow diagram.In the method shown in Fig. 4, step S1 ', step S2 ' and step S4 ' respectively with step S1 shown in Fig. 3, Step S2 and step S4 are same or similar, and for the sake of describing simplicity, therefore here is omitted, and is contained in by way of reference This.
Different from step S3 shown in Fig. 3, in Fig. 4 steps S3 ' when retrieval does not obtains described pre-trigger operation information, Using the described network equipment in step S1 ' accession page that obtained is as described results page.For example, it is assumed that in step S1 ' in, The plan that the described network equipment obtains is supplied in the accession page of subscriber equipment containing one section of page script, and described page script is used Show the checking picture corresponding with identifying code;In step S2 ' in, the described network equipment is according to the script of described page script Relevant information, carries out matching inquiry in script mode storehouse, and does not includes and this page script phase in described script mode storehouse When corresponding pre-trigger operates information, the retrieval of the described network equipment does not obtains the pre-trigger operation corresponding with described page script Information;Then in step S3 ' in, the described network equipment using obtained accession page as described results page;And in step In S4 ', described results page is provided to described subscriber equipment by the described network equipment.Here, described script mode stock contains Mapping relations between page script and pre-trigger operation information;It includes the script mode storehouse in the described network equipment, passes through Script mode storehouse in the third party device that network is connected with the described network equipment.
In a preferred embodiment (with reference to Fig. 4), the method also includes step S5 ', step S6 ' and step S7 ', wherein, In step S5 ' in, the described network equipment obtains relative with the access request that described subscriber equipment sends based on described results page The second accession page answered, then, in step S6 ' in, described accession page is accessed page with described second by the described network equipment Face compares, to obtain the mapping relations of described page script and described pre-trigger operation information, and, in step S7 ' in, The described network equipment is set up according to the mapping relations of the new described page script obtained with described pre-trigger operation information or more New described script mode storehouse.Referring to Fig. 4, the preferred embodiment is described in detail, wherein, in step S1 ' in, described The network equipment such as passes through application programming interfaces (API) or the communication party of agreement that the third party devices such as search engine are provided Formula, obtains the accession page intending being supplied to subscriber equipment from this third party device, and described accession page includes page script, so After, in step S2 ' in, the described network equipment, according to the script relevant information of described page script, is carried out in script mode storehouse Matching inquiry, with the pre-trigger operation information that retrieval is corresponding with described page script, then, in step S3 ' in, described network Equipment is not when detection obtains described pre-trigger operation information, using the accession page that obtained as described results page, and, In step S4 ' in, described results page is provided to described subscriber equipment by the described network equipment.Then, in step S5 ' in, institute State the network equipment obtain the access request sent based on described results page with described subscriber equipment corresponding second access page Face, then, in step S6 ' described in the network equipment described accession page is compared, such as with described second accession page Compare the change of the display state of corresponding page elements in both, to obtain described page script and described pre-trigger operation information Mapping relations, and, in step S7 ' in, the described network equipment is according to the new described page script obtained and described pre-trigger The mapping relations of operation information are set up or update described script mode storehouse.Therefore, the most described network equipment is in step S2 ' The middle script relevant information according to described page script, carries out matching inquiry in the script mode storehouse after setting up or updating, With the pre-trigger operation information that retrieval is corresponding with described page script, the most described network equipment obtains described pre-tactile in detection Send out operation information time, in step S3 ' according to described pre-trigger operate information, described page script is carried out pre-trigger process, To obtain the results page corresponding with described accession page, finally, in step S4 ' in, the described network equipment is by described result The page provides to described subscriber equipment.Its detailed process and step S1 in the aforementioned embodiment with reference to described by Fig. 3 ', step S2 ' With step S4 ' performed by process identical, for simplicity's sake, be incorporated herein with way of reference, and do not repeat.
Preferably, the method also includes analytical procedure (not shown), and in described analytical procedure, the described network equipment is to candidate Page script carries out cluster analysis, to obtain described candidate page with one or more groups corresponding relation of candidate's pre-trigger operation information Face script operates the candidate mappings relation of information with candidate's pre-trigger;Then, in step S7 ' in, the described network equipment is according to institute State candidate mappings relation, set up or update described script mode storehouse.Specifically, the time of corresponding relation is existed for one or more groups Selecting page script to operate information with candidate's pre-trigger, the described network equipment is in analytical procedure, by sides such as such as page parsing Formula, obtains script corresponding to described candidate page script and describes sequence, then describe by the script corresponding to candidate page script Sequence carries out cluster analysis with the candidate vector of candidate's pre-trigger operation information structure, obtains one or more cluster and correspondence thereof Cluster description vectors, and then by each cluster description vectors determine in candidate mappings relation, i.e. this cluster description vectors right Script is answered to describe the part of sequence and candidate between the part of corresponding candidate's pre-trigger operation information in this cluster description vectors Mapping relations;Then, in step S7 ' in, the described network equipment, according to described candidate mappings relation, is set up or updates described script Library.Preferably for the candidate page script corresponding to same or like candidate's pre-trigger operation information, in analytical procedure In, the described network equipment, by modes such as such as page parsing, obtains script corresponding to described candidate page script and describes sequence, Again these scripts being described sequence and carry out cluster analysis, the cluster obtaining one or more cluster and correspondence thereof describes sequence, enters And determine that each cluster describes the candidate mappings relation between candidate's pre-trigger operation information that sequence is corresponding.Here, it is poly- Alanysis operates adoptable algorithm and includes but not limited to hierarchical clustering method, decomposition method, addition method, dynamic state clustering, orderly sample Product cluster, have overlapping cluster and fuzzy clustering etc..Use this network equipment, when in step S1 ' in such as by search engine etc. Application programming interfaces (API) that third party device is provided or the communication mode of agreement, obtain from this third party device and intend providing To subscriber equipment and include page script accession page time, the described network equipment is according to the relevant letter of the script of described page script Breath carries out the matching capacity in the script mode storehouse of matching inquiry can be increasingly stronger, that is, such as candidate in described script mode storehouse Mapping relations between page script and candidate's pre-trigger operation information can be more and more abundanter, thus the network equipment of the present invention can Script relevant information according to page script carries out matching inquiry in script mode storehouse, relative with described page script with retrieval The pre-trigger operation information answered, and directly described page script is carried out pre-when retrieval obtains described pre-trigger operation information Triggering processes and obtains results page, in order to greatly reduce the interaction times between user and server, promotes the webpage of user Viewing experience.Those skilled in the art will be understood that above-mentioned a group to candidate page script and candidate's pre-trigger operation information or Many group corresponding relations carry out cluster analysis to obtain the candidate mappings of described candidate page script and candidate's pre-trigger operation information The mode of relation is only for example, other existing or be likely to occur from now on to candidate page script and candidate's pre-trigger operation letter One or more groups corresponding relation of breath carries out cluster analysis and operates information to obtain described candidate page script with candidate's pre-trigger The mode of candidate mappings relation be such as applicable to the present invention, within also should being included in scope, and with the side of quoting Formula is incorporated herein.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of the spirit or essential attributes of the present invention, it is possible to realize the present invention in other specific forms.Therefore, no matter From the point of view of which point, all should regard embodiment as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all by fall in the implication of equivalency and scope of claim Change is included in the present invention.Should not be considered as limiting involved claim by any reference in claim.This Outward, it is clear that " including ", a word was not excluded for other unit or step, and odd number is not excluded for plural number.In system claims, statement is multiple Unit or device can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for table Show title, and be not offered as any specific order.

Claims (20)

1. in the network device for the method that the page script in accession page is processed, wherein, described method Comprise the following steps:
A obtains the accession page intending being supplied to subscriber equipment, and wherein, described accession page includes page script;
B, according to the script relevant information of described page script, carries out matching inquiry in script mode storehouse, with retrieval and described page The pre-trigger operation information that face script is corresponding;
C, when retrieval obtains described pre-trigger operation information, operates information according to described pre-trigger, carries out described page script Pre-trigger processes, to obtain the results page corresponding with described accession page;
Described results page is provided to described subscriber equipment by d.
Method the most according to claim 1, wherein, described step c includes:
C1 when retrieval obtain described pre-trigger operation information time, detect whether meet described page script is carried out pre-trigger process Trigger condition;
C2, when meeting described trigger condition, operates information according to described pre-trigger, carries out described page script at pre-trigger Reason, to obtain described results page.
Method the most according to claim 2, wherein, described trigger condition includes following at least any one:
-described accession page comprises the pending binding event corresponding with described page script;
In-described accession page, the display properties corresponding with described page script is entered as sky.
The most according to the method in claim 2 or 3, wherein, described step c2 also includes:
-when being unsatisfactory for described trigger condition, using described accession page as described results page.
The most according to the method in any one of claims 1 to 3, wherein, described step c also includes:
-when retrieval does not obtains described pre-trigger operation information, using described accession page as described results page.
Method the most according to claim 5, wherein, described method also includes:
X1 obtains the second accession page that the access request sent based on described results page with described subscriber equipment is corresponding;
Described accession page is compared by x2 with described second accession page, to obtain described page script and described pre-trigger The mapping relations of operation information;
X3, according to described mapping relations, sets up or updates described script mode storehouse.
Method the most according to claim 6, wherein, described method also includes:
-one or more groups corresponding relation of candidate page script and candidate's pre-trigger operation information is carried out cluster analysis, to obtain Obtain the candidate mappings relation of described candidate page script and candidate's pre-trigger operation information;
Wherein, described step x3 also includes:
-according to described candidate mappings relation, set up or update described script mode storehouse.
8. according to claims 1 to 3, method according to any one of 6,7, wherein, described script mode storehouse include following at least Any one:
-identifying code pattern to be shown;
-input window pattern to be activated;
The to be switched pattern of-page-tag.
9. according to claims 1 to 3, method according to any one of 6,7, wherein, described script relevant information include with down to Few any one:
The element type information of-described page script;
The function keyword message of-described page script;
Event type information corresponding to-described page script.
10., according to claims 1 to 3, method according to any one of 6,7, wherein, described page script is at least appointed based on following A kind of script:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
11. 1 kinds for the network equipment processing the page script in accession page, wherein, described network equipment bag Include:
Page acquisition device, for obtaining the accession page intending being supplied to subscriber equipment, wherein, described accession page includes the page Script;
Coalignment, for the script relevant information according to described page script, carries out matching inquiry in script mode storehouse, with Retrieve the pre-trigger operation information corresponding with described page script;
Processing means, for when retrieval obtains described pre-trigger operation information, operating information according to described pre-trigger, to described Page script carries out pre-trigger process, to obtain the results page corresponding with described accession page;
There is provided device, for providing described results page to described subscriber equipment.
12. network equipments according to claim 11, wherein, described processing means includes:
Detector unit, for when retrieval obtains described pre-trigger operation information, detecting whether to meet to enter described page script The trigger condition that row pre-trigger processes;
Processing unit, for when meeting described trigger condition, operates information according to described pre-trigger, enters described page script Row pre-trigger processes, to obtain described results page.
13. network equipments according to claim 12, wherein, described trigger condition includes following at least any one:
-described accession page comprises the pending binding event corresponding with described page script;
In-described accession page, the display properties corresponding with described page script is entered as sky.
14. according to the network equipment described in claim 12 or 13, and wherein, described processing unit is additionally operable to:
-when being unsatisfactory for described trigger condition, using described accession page as described results page.
15. according to the network equipment according to any one of claim 11 to 13, and wherein, described processing means is additionally operable to:
-when retrieval does not obtains described pre-trigger operation information, using described accession page as described results page.
16. network equipments according to claim 15, wherein, the described network equipment also includes:
First acquisition device, corresponding with the access request that described subscriber equipment sends based on described results page for obtaining Second accession page;
Comparison means, for comparing described accession page with described second accession page, to obtain described page script Mapping relations with described pre-trigger operation information;
Updating device, for according to described mapping relations, sets up or updates described script mode storehouse.
17. network equipments according to claim 16, wherein, the described network equipment also includes analytical equipment, is used for
-one or more groups corresponding relation of candidate page script and candidate's pre-trigger operation information is carried out cluster analysis, to obtain Obtain the candidate mappings relation of described candidate page script and candidate's pre-trigger operation information;
Wherein, described updating device is additionally operable to:
-according to described candidate mappings relation, set up or update described script mode storehouse.
18. according to claim 11 to 13, the network equipment according to any one of 16,17, and wherein, described script mode storehouse includes Below at least any one:
-identifying code pattern to be shown;
-input window pattern to be activated;
The to be switched pattern of-page-tag.
19. according to claim 11 to 13, the network equipment according to any one of 16,17, wherein, described script relevant information bag Include following at least any one:
The element type information of-described page script;
The function keyword message of-described page script;
Event type information corresponding to-described page script.
20. according to claim 11 to 13, the network equipment according to any one of 16,17, wherein, described page script based on Under at least any of script:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
CN201110329921.9A 2011-10-26 A kind of equipment and method that page script in the page is carried out pre-trigger process Active CN102402588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110329921.9A CN102402588B (en) 2011-10-26 A kind of equipment and method that page script in the page is carried out pre-trigger process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110329921.9A CN102402588B (en) 2011-10-26 A kind of equipment and method that page script in the page is carried out pre-trigger process

Publications (2)

Publication Number Publication Date
CN102402588A CN102402588A (en) 2012-04-04
CN102402588B true CN102402588B (en) 2016-12-14

Family

ID=

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018714A1 (en) * 2001-07-20 2003-01-23 Dmytro Mikhailov Proactive browser system
CN101329675A (en) * 2007-06-19 2008-12-24 百度在线网络技术(北京)有限公司 Method and system for matching web page advertisement
CN101777072A (en) * 2010-01-22 2010-07-14 金蝶软件(中国)有限公司 Device and method for generating image hot area and application system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030018714A1 (en) * 2001-07-20 2003-01-23 Dmytro Mikhailov Proactive browser system
CN101329675A (en) * 2007-06-19 2008-12-24 百度在线网络技术(北京)有限公司 Method and system for matching web page advertisement
CN101777072A (en) * 2010-01-22 2010-07-14 金蝶软件(中国)有限公司 Device and method for generating image hot area and application system

Similar Documents

Publication Publication Date Title
CN102306171B (en) A kind of for providing network to access suggestion and the method and apparatus of web search suggestion
US9846699B2 (en) System and methods thereof for dynamically updating the contents of a folder on a device
CN105940654B (en) Franchise static web application in trust
CN107003877A (en) The context deep-link of application
WO2017019735A1 (en) Classifying user behavior as anomalous
CN105793862B (en) Dynamic routine is guided execution in isolation environment
CN104572072B (en) A kind of language transfer method and equipment to the program based on MVC pattern
CN104461892B (en) Self-defined control acquisition methods and device
US10331441B2 (en) Source code mapping through context specific key word indexes and fingerprinting
CN105302461B (en) A kind of method and apparatus for the offer target pages in mobile application
CN108701150A (en) Text fragment is generated using generic concept figure
CN107392028A (en) The detection method and its detection means of sensitive information, storage medium, electronic equipment
CN104504058B (en) A kind of page display method and browser device
CN105488415B (en) The method and apparatus of scanning system process
CN104125308B (en) For the method and domain name analysis system of the domain name mapping of multi-user
KR20160125401A (en) Inline and context aware query box
CA2788330A1 (en) Systems and methods for providing a validation tool
CN109155148A (en) The method to identify protein ligand interaction is docked for protein groups
CN106886594A (en) For the method and apparatus of exhibition information
CN106250761A (en) A kind of unit identifying web automation tools and method
CN112527689B (en) Application testing method and device and storage medium
US20160301760A1 (en) Method and apparatus for outputting recognizable identifier
JP5691840B2 (en) Method, system, storage medium and computer program used by computer apparatus
CN107735785A (en) Automated information retrieval
CN102402588B (en) A kind of equipment and method that page script in the page is carried out pre-trigger process

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant