CN102402588A - Device and method of pre triggering processing for the page script - Google Patents

Device and method of pre triggering processing for the page script Download PDF

Info

Publication number
CN102402588A
CN102402588A CN2011103299219A CN201110329921A CN102402588A CN 102402588 A CN102402588 A CN 102402588A CN 2011103299219 A CN2011103299219 A CN 2011103299219A CN 201110329921 A CN201110329921 A CN 201110329921A CN 102402588 A CN102402588 A CN 102402588A
Authority
CN
China
Prior art keywords
page
script
trigger action
action information
accession
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103299219A
Other languages
Chinese (zh)
Other versions
CN102402588B (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
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 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
Priority claimed from CN201110329921.9A external-priority 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

Images

Abstract

The invention provides a device and method for processing the page script, including: getting the visiting page to be provided to the user device, wherein the gotten page comprises a page script; according to the related information of the script, matching and querying in the page script base to retrieve pre trigger operation information, when retrieval of the trigger operation information, preprocessing the page script according to the trigger operation information to obtain the results page corresponding to the access page; providing the results page to the user device. Compared with the prior art, the invention retrieves the pre trigger operation information corresponding to page script according to the related information of page script, then pre trigger processing the page script to obtain results page, and is characterized by significantly reducing the number of the interaction between client and server, and enhancing the user's webpage browsing experience.

Description

A kind of equipment and method that page script in the page is triggered in advance processing
Technical field
The present invention relates to the page treatment technology of internet, relate in particular to the page script in the page is triggered Treatment Technology in advance.
Background technology
Along with Internet development, all kinds of scripts are widely used in the webpage design, and these scripts not only can reduce the scale and raising web page browsing speed of webpage, and can enrich the content and the performance of webpage, like picture, animation, sound etc.
Yet; When server during at transfer page script, the type of different page scripts and function will cause the various human machine interactive interface, such as: to the authentication code pattern; In some webpage; Have only the user to pass through mouse click event or the keyboard incoming event has activated authentication code, just can must carry out at least interactive operation between user and server in this course from network download and demonstration with the corresponding authentication picture of this authentication code; To the input frame association mode; In some webpage, only when the user name frame obtains focus, just can below the user name frame of this webpage password box appear; When the user name frame does not obtain focus in this course; Password box input function and not enabled not only increase the interaction times between user and the server, also will cause user's web page browsing to experience reduction greatly.
In view of this, how to trigger page script in advance, reduce the interaction times between user and the server, the web page browsing that promotes the user is experienced, and becomes a problem needing solution now badly.
Summary of the invention
The purpose of this invention is to provide a kind of equipment and method that page script in the page is triggered in advance processing.
According to an aspect of the present invention, a kind of method that page script in the page is handled is provided, this method may further comprise the steps:
A obtains and intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script;
B carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script;
When c obtains said preparatory trigger action information when retrieval, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page;
D provides said page to said subscriber equipment.
According to another aspect of the present invention, a kind of network equipment that page script in the accession page is handled is provided also, this equipment comprises:
Page deriving means is used to obtain and intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script;
Coalignment is used for the script relevant information according to said page script, in the script library, carries out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script;
Treating apparatus is used for when retrieval obtains said preparatory trigger action information, according to said preparatory trigger action information, said page script being triggered processing in advance, to obtain and the corresponding page of said accession page;
Generator is used for said page is provided to said subscriber equipment.
Compared with prior art; The present invention is according to the script relevant information of page script; Retrieval and the corresponding preparatory trigger action information of said page script; And then said page script triggered processing in advance obtaining page, thereby can reduce the interaction times between user and the server significantly, the web page browsing that promotes the user is experienced.
Description of drawings
Through reading the detailed description of doing with reference to following accompanying drawing that non-limiting example is done, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 illustrates the equipment synoptic diagram that is used for the page script of the page is triggered in advance processing according to one aspect of the invention;
Fig. 2 illustrates the equipment synoptic diagram that is used for the page script of the page is triggered in advance processing in accordance with a preferred embodiment of the present invention;
Fig. 3 illustrates the method flow diagram that is used for the page script of the page is triggered in advance processing according to a further aspect of the present invention;
Fig. 4 illustrates the method flow diagram that is used for the page script of the page is triggered in advance processing according to another preferred embodiment of the present invention.
Same or analogous Reference numeral is represented same or analogous parts in the accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the present invention is described in further detail.
Fig. 1 illustrates the equipment synoptic diagram that is used for the page script of the page is triggered in advance processing according to one aspect of the invention.Wherein, the network equipment 1 includes but not limited to the cloud that computing machine, network host, single network server, a plurality of webserver collection or a plurality of server constitute.At this, cloud is by constituting based on the great amount of calculation machine of cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine of being made up of the loosely-coupled computing machine collection of a group.Those skilled in the art will be understood that the above-mentioned network equipment is merely for example, and other network equipments existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.
With reference to Fig. 1, the said network equipment 1 comprises page deriving means 11, coalignment 12, treating apparatus 13 and generator 14.Particularly, the page deriving means 11 of the said network equipment 1 obtains intends the accession page that offers subscriber equipment, and said accession page comprises page script; Coalignment 12 carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script; When treating apparatus 13 obtains said preparatory trigger action information in 12 retrievals of said coalignment, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page; Generator 14 provides said treating apparatus 13 page that obtains to said subscriber equipment.
Page deriving means 11 obtains intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script.Particularly; The communication mode of application programming interfaces (API) that said page deriving means 11 is for example provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device, wherein, said accession page comprises page script; Perhaps; The accessing page request that said page deriving means 11 sends according to said subscriber equipment; The plan that reception is obtained based on said accessing page request from page server offers the accession page of subscriber equipment, and wherein, said accession page comprises page script.At this, said communication mode includes but not limited to based on the mobile communication of 3GPP, LTE, WIMAX, based on the computer network communication of TCP/IP, udp protocol and based on close range wireless communication modes of bluetooth, infrared transmission standard etc.Those skilled in the art will be understood that above-mentioned obtaining intend the mode offer subscriber equipment and to comprise the accession page of page script and be merely for example; Other existing or obtaining of possibly occurring are from now on intended the mode of accession page offer subscriber equipment and to comprise page script as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Coalignment 12 carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script.Particularly; The plan that coalignment 12 obtains according to page deriving means 11 offers the accession page of subscriber equipment and the page script in this accession page; Through such as this page script and/or this accession page are carried out modes such as dissection process; Obtain the script relevant information in the said page script; Such as the function keyword message of the element type information of said page script, said page script, the pairing event type information of said page script or the like; And in the script library, carry out matching inquiry through the script relevant information of said page script, with retrieval and the corresponding preparatory trigger action information of said page script, such as showing the pairing checking picture of identifying code, activate input window, switching page-tag or the like.For example; Supposing that plan that page deriving means 11 obtains offers in the accession page of subscriber equipment contains one section page script; Said page script is used for showing and the corresponding checking picture of identifying code; At this, when said page script not being carried out any processing, the user only triggers corresponding mouse click event and can show and the corresponding checking picture of said identifying code in said accession page; Coalignment 12 in the said network equipment 1 is according to the script relevant information of said page script; In the script library, carry out matching inquiry; And when said script library comprised the mapping relations between above-mentioned page script and the preparatory trigger action information, retrieval obtained and the corresponding preparatory trigger action information of said page script; Perhaps, when said script library did not comprise the mapping relations between above-mentioned page script and the preparatory trigger action information, retrieval did not obtain and the corresponding preparatory trigger action information of said page script.At this, said script library stores the mapping relations between page script and the preparatory trigger action information; It comprises script library in the said network equipment 1, through the script library in network and the third party device that the said network equipment 1 is connected.Those skilled in the art will be understood that above-mentioned script relevant information according to said page script is carried out matching inquiry in the script library mode is merely for example; Other script relevant informations according to said page script existing or that possibly occur are from now on carried out matching inquiry in the script library mode is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
When treating apparatus 13 obtains said preparatory trigger action information in coalignment 12 retrieval, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page.Particularly, said coalignment 12 carries out matching inquiry with the script relevant information of said page script in the script library, to obtain and the corresponding preparatory trigger action information of said page script; When said treating apparatus 13 obtains said preparatory trigger action information in 12 retrievals of said coalignment, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page.For example; When obtaining comprising with the corresponding preparatory trigger action information of said page script, 12 retrievals of said coalignment show and during checking picture that identifying code is corresponding; Treating apparatus 13 is according to this preparatory trigger action information; Said page script is triggered processing in advance, the said checking picture in the said accession page is shown in advance, thereby shown the page of verifying picture.Can know from the operating process that said treating apparatus 13 is carried out, provide to the page of said subscriber equipment to have shown and the corresponding checking picture of said identifying code that the user only needs in the identifying code input frame, directly to import and gets final product; By contrast; Page script is not triggered processing in advance in the prior art; Provide to the accession page of said subscriber equipment and do not show and the corresponding checking picture of said identifying code that the user just can see said checking picture after having only operations such as execution such as mouse click event or keyboard incoming event.Thereby the said network equipment 1 is handled based on the preparatory triggering of said page script can reduce the interactive operation number of times between user and the server significantly, and the network browsing that promotes the user is experienced.At this, the preparatory triggering that said page script carries out to be handled, the existing triggering processing mode of the said page script of being grasped with those skilled in the art for example starts when detecting the corresponding trigger condition of said page script and carries out this page script.Identical or basic identical.For example, the preparatory triggering of said page script being carried out is handled and is included but not limited to: directly start and carry out this page script; Perhaps simulate the pairing trigger event of this page script, and when detecting the trigger condition of said page script correspondence, start this page script of execution; Perhaps simulate the pairing trigger pip of this trigger event, start and carry out this page script.Those skilled in the art will be understood that and above-mentionedly according to said preparatory trigger action information said page script triggered processing in advance and be merely for example with the mode of the corresponding page of said accession page obtaining; Other existing or possibly occur from now on according to said preparatory trigger action information to said page script trigger in advance processing with obtain with the mode of the corresponding page of said accession page as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Generator 14 provides said page to said subscriber equipment.Particularly; Trigger processing in advance through 13 pairs of said page scripts of treating apparatus; After obtaining said page; Generator 14 like http or https, offers said subscriber equipment with said page through application programming interfaces (API) that provided such as the network equipment 1 or the communication mode of agreement.At this, said communication mode includes but not limited to: based on the mobile communication of 3GPP, LTE, WIMAX; Computer network communication based on TCP/IP, udp protocol; Based near radio transmission mode of bluetooth, infrared transmission standard etc.Said network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network, wireless self-organization network (Ad Hoc network) etc.Those skilled in the art will be understood that above-mentioned said page is provided to the mode of said subscriber equipment is merely for example; The mode of other existing or possibly occur from now on said page is provided to said subscriber equipmenies is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Preferably, page deriving means 11, coalignment 12, treating apparatus 13 and generator 14 are constant work.Particularly, the page deriving means 11 of the said network equipment 1 continues to obtain intends the accession page that offers subscriber equipment, and said accession page comprises page script; Then, the script relevant information that coalignment 12 continues according to said page script is carried out matching inquiry in the script library, with retrieval and the corresponding preparatory trigger action information of said page script; Then, treating apparatus 13 continues when 12 retrievals of said coalignment obtain said preparatory trigger action information, according to said preparatory trigger action information, said page script to be triggered processing in advance, to obtain and the corresponding page of said accession page; At last, the generator 14 lasting page that said treating apparatus 13 is obtained provide to said subscriber equipment.At this; It will be understood by those skilled in the art that " continuing " is meant that page deriving means 11, coalignment 12, treating apparatus 13 and generator 14 continue to obtain the corresponding preparatory trigger action information of accession page, retrieval and said page script that offers subscriber equipment intended respectively, according to said preparatory trigger action information said page script triggered processing in advance; And the page that is obtained provided to said subscriber equipment; Stop in a long time obtaining the accession page that plan offers subscriber equipment until the network equipment 1, this accession page comprises page script.
(with reference to Fig. 1) in a preferred embodiment; Said treating apparatus 13 comprises detecting unit (not shown) and processing unit (not shown); Wherein, when said detecting unit obtains said preparatory trigger action information in 12 retrievals of said coalignment, detect and whether satisfy the trigger condition that said page script is triggered in advance processing; Said processing unit in said detection when satisfying said trigger condition; According to said preparatory trigger action information, said page script is triggered processing in advance, to obtain said page.Followingly the preferred embodiment is described in detail with reference to Fig. 1; Wherein, page deriving means 11 obtains intends the accession page that offers subscriber equipment, and said accession page comprises page script; Coalignment 12 is according to the script relevant information of said page script then; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script, then the detecting unit in the treating apparatus 13 is when said coalignment 12 retrievals obtain said preparatory trigger action information; Detect and whether satisfy the trigger condition that said page script is triggered in advance processing; And the processing unit in the treating apparatus 13 when satisfying said trigger condition, according to said preparatory trigger action information, triggers processing to said page script in said detection in advance; Obtaining said page, last generator 14 provides the page that is obtained to said subscriber equipment.Its detailed process for for simplicity, is contained in this with way of reference with aforementioned identical with reference to the performed process of page deriving means 11 among the described embodiment of Fig. 1, coalignment 12 and generator 14, does not give unnecessary details and do not do.
Preferably, said trigger condition comprise following at least each:
1) comprises the binding incident corresponding to be carried out in the said accession page with said page script;
2) be empty with the corresponding display properties assignment of said page script in the said accession page.
1) with said trigger condition comprise comprise in the said accession page with said page script binding incident corresponding to be carried out be example; When the script relevant information of said coalignment 12 according to said page script; In the script library, carry out matching inquiry; Retrieval obtains and the corresponding preparatory trigger action information of said page script, such as showing and the corresponding checking picture of identifying code; Suppose to comprise demonstration identifying code input frame with said page script binding incident corresponding to be carried out; Said detecting unit is after said coalignment 12 retrievals obtain said preparatory trigger action information (showing the checking picture); Detect and whether satisfy the trigger condition that said page script is triggered in advance processing; Promptly detect and whether comprise the binding incident that shows the identifying code input frame in the said accession page; For example when comprising demonstration identifying code input frame in the said accession page, then said detection is for satisfying the trigger condition that said page script is triggered in advance processing; Then, said processing unit triggers processing according to said preparatory trigger action information to said page script in advance, as the said checking picture in the said accession page is shown in advance, thereby has been shown the page of checking picture.At this, said detecting unit is through detecting whether comprise the binding incident corresponding to be carried out with said page script in the said accession page such as the page script in this accession page and/or this accession page are carried out modes such as dissection process.
2) with said trigger condition comprise in the said accession page with the corresponding display properties assignment of said page script be sky as an example; When coalignment 12 retrieval obtains and the corresponding preparatory trigger action information of said page script, when showing with the corresponding checking picture of identifying code; Said detecting unit triggers said page script and generates the identifying code control; And whether the display properties assignment that detects in the said identifying code control is empty; Have or not property value such as the vvcode that detects the display properties src assignment in the html file or detect in the PHP file; And when in said accession page, being empty with the corresponding display properties assignment of said page script, said detection is for satisfying the trigger condition that said page script is triggered in advance processing, and said then processing unit is according to said preparatory trigger action information; Said page script is triggered processing in advance, to obtain to have shown the page of verifying picture.
Preferably, said processing unit when not satisfying said trigger condition, with said accession page as said page.Particularly; Said detecting unit is when obtaining said preparatory trigger action information through 12 retrievals of said coalignment; Detect to not satisfying the trigger condition that said page script is triggered in advance processing, then said processing unit with said accession page as said page.For example; Said coalignment 12 retrievals obtain such as after the said preparatory trigger action information that shows the pairing checking picture of identifying code; Said detecting unit detects to not satisfying the trigger condition that said page script is triggered in advance processing according to said preparatory trigger action information; Be presented in the said accession page and need not such as, checking picture said page script has been triggered when handling in advance, said processing unit with said accession page as said page.
Preferably, said script library comprise following at least each:
1) identifying code pattern to be shown;
2) input window is treated enable mode;
3) the to be switched pattern of page-tag.
1) comprises that with said script library identifying code pattern to be shown is an example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script.For example; When said page script is verified picture corresponding to demonstration; Said coalignment 12 is according to the script relevant information of said page script; Matching inquiry arrives and the corresponding identifying code of said page script pattern to be shown in the script library, and according to the pairing preparatory trigger action information of identifying code pattern to be shown described in this script library, obtains the corresponding preparatory trigger action information of said page script.Then; When treating apparatus 13 retrieves said preparatory trigger action information at said coalignment 12; According to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page; At last, generator 14 provides the page that said treating apparatus 13 is obtained to said subscriber equipment.
2) comprise that with said script library input window treats that enable mode is an example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script.For example; Said page script is when activating input window; Said coalignment 12 is according to the script relevant information of said page script; Matching inquiry is to treating enable mode with the corresponding input window of said page script in the script library, and treats the pairing preparatory trigger action information of enable mode according to input window described in this script library, obtains the corresponding preparatory trigger action information of said page script; Such as; Said treating apparatus 13 will be presented in the said accession page with user name input frame and the password input frame under the corresponding state of activation of said page script according to said preparatory trigger action information in the lump, and said generator 14 will comprise the said user name input frame that has been shown as state of activation and the page of password input frame offers subscriber equipment.
3) comprise that with said script library the to be switched pattern of page-tag is an example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script.For example; Said page script is when switching page-tag; Said coalignment 12 is according to the script relevant information of said page script; Matching inquiry arrives and the to be switched pattern of the corresponding page-tag of said page script in the script library, and according to the pairing preparatory trigger action information of the to be switched pattern of page-tag described in this script library, obtains the corresponding preparatory trigger action information of said page script; Such as; Said treating apparatus 13 is according to said preparatory trigger action information, and the data message under the new page label after will switching with the corresponding page-tag of said page script is presented in the said accession page, and the page that said generator 14 will comprise the data message under the said new page label offers subscriber equipment.Those skilled in the art will be understood that the included pattern of above-mentioned script library is merely for example; The pattern of other script library existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Preferably, said script relevant information comprise following at least each:
1) the element type information of said page script;
2) the function keyword message of said page script;
3) the pairing event type information of said page script.
1) comprises that with said script relevant information the element type information of said page script is example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 is through such as said page script and/or said accession page are resolved; Obtaining the element type information of said page script, and in said script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script according to the element type information of said page script.
2) comprise that with said script relevant information the function keyword message of said page script is an example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 is through such as said page script and/or said accession page are resolved; Obtaining the function keyword message of said page script, and in said script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script according to the function keyword message of said page script.
3) comprise that with said script relevant information the pairing event type information of said page script is example; Communication mode when said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; Coalignment 12 through such as to said page script with or said accession page resolve; Obtaining the pairing event type information of said page script, and in said script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script according to the pairing event type information of said page script.Preferably; Coalignment 12 is through such as said page script is carried out code analysis; Combination in any with the above-mentioned script relevant information that obtains said page script; And in said script library, carry out matching inquiry according to the combination in any of said script relevant information, with retrieval and the corresponding preparatory trigger action information of said page script.Those skilled in the art will be understood that above-mentioned script relevant information is merely for example, and other script relevant informations existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.
Preferably, said page script is based on following any script at least:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
Above-mentioned HTML, XML, JavaScript, AJAX, PHP and ASPX script all can constitute said page script; Is example with said page script based on the JavaScript script; Through said JavaScript; Can be used for for html web page adds dynamic function, such as the various operations of response from the user.The communication mode of said page deriving means 11 such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; Said accession page comprises the page script based on above-mentioned any script; And the said network equipment 1 is discerned based on the script pattern to said page script; Retrieving corresponding preparatory trigger action information, and selectively said page script is triggered processing in advance according to said preparatory trigger action information, thus provide with the corresponding page of said accession page in; Reduce the interaction times between user and the server, the web page browsing that promotes the user is experienced.Those skilled in the art will be understood that above-mentioned script is merely for example, and other scripts existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.
Fig. 2 illustrates the equipment synoptic diagram that is used for the page script of the page is triggered in advance processing in accordance with a preferred embodiment of the present invention.Wherein, the network equipment 1 ' includes but not limited to the cloud that computing machine, network host, single network server, a plurality of webserver collection or a plurality of server constitute.At this, cloud is by constituting based on the great amount of calculation machine of cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine of being made up of the loosely-coupled computing machine collection of a group.Those skilled in the art will be understood that the above-mentioned network equipment is merely for example, and other network equipments existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.Wherein, the said network equipment 1 ' comprises page deriving means 11 ', coalignment 12 ', treating apparatus 13 ' and generator 14 '.
In the network equipment 1 ' shown in Figure 2; Page deriving means 11 ', coalignment 12 ' and generator 14 ' are same or similar with page deriving means 11, coalignment 12 and generator 14 shown in Figure 1 respectively; For describing for simplicity; So locate to repeat no more, and mode by reference is contained in this.
Different with treating apparatus 13 shown in Figure 1, when the treating apparatus 13 ' among Fig. 2 did not obtain said preparatory trigger action information in the 12 ' retrieval of said coalignment, the accession page that said page deriving means 11 ' is obtained was as said page.For example, supposing that plan that page deriving means 11 ' obtains offers in the accession page of subscriber equipment contains one section page script, and said page script is used for showing and the corresponding checking picture of identifying code; Coalignment 12 ' in the said network equipment 1 ' is according to the script relevant information of said page script; In the script library, carry out matching inquiry; And when said script library did not comprise with the corresponding preparatory trigger action information of this page script, this coalignment 12 ' retrieval did not obtain and the corresponding preparatory trigger action information of said page script; Said then treating apparatus 13 ' with the said page deriving means 11 ' accession page that obtains as said page; And said generator 14 ' provides said page to said subscriber equipment.At this, said script library stores the mapping relations between page script and the preparatory trigger action information; It comprises script library in the said network equipment 1 ', through the script library in network and the third party device that the said network equipment 1 ' is connected.
(with reference to Fig. 2) in a preferred embodiment; The said network equipment 1 ' also comprises first deriving means 15 ', comparison means 16 ' and updating device 17 '; Wherein, Said first deriving means 15 ' obtains corresponding second accession page of access request that sends based on said page with said subscriber equipment; Said then comparison means 16 ' compares said accession page and said second accession page, and obtaining the mapping relations of said page script and said preparatory trigger action information, and said updating device 17 ' is set up according to the mapping relations of new said page script that obtains and said preparatory trigger action information or upgraded said script library.Followingly the preferred embodiment is described in detail with reference to Fig. 2; Wherein, The communication mode of page deriving means 11 ' such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement obtains the accession page that plan offers subscriber equipment from this third party device, and said accession page comprises page script; Coalignment 12 ' is according to the script relevant information of said page script then; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script, then treating apparatus 13 ' detects when not obtaining said preparatory trigger action information at said coalignment 12 '; The accession page that said page deriving means 11 ' is obtained is as said page, and said generator 14 ' provides said page to said subscriber equipment.Then; Said first deriving means 15 ' obtains corresponding second accession page of access request that sends based on said page with said subscriber equipment; Said then comparison means 16 ' compares said accession page and said second accession page; The variation of for example comparing the show state of corresponding page elements among both; Obtaining the mapping relations of said page script and said preparatory trigger action information, and said updating device 17 ' is set up according to the mapping relations of new said page script that obtains and said preparatory trigger action information or is upgraded said script library.Therefore; Said next time coalignment 12 ' is according to the script relevant information of said page script; Carry out matching inquiry in the script library after setting up or upgrading, with retrieval and the corresponding preparatory trigger action information of said page script, then treating apparatus 13 ' detects when obtaining said preparatory trigger action information at said coalignment 12 '; According to said preparatory trigger action information; Said page script is triggered processing in advance, and with acquisition and the corresponding page of said accession page, last said generator 14 ' provides said page to said subscriber equipment.Its detailed process for for simplicity, is contained in this with way of reference with aforementioned identical with reference to the performed process of page deriving means 11 ' among the described embodiment of Fig. 2, coalignment 12 ' and generator 14 ', does not give unnecessary details and do not do.
Preferably; The said network equipment 1 ' also comprises the analytical equipment (not shown); Said analytical equipment carries out cluster analysis to one or more groups corresponding relation of candidate page script and the preparatory trigger action information of candidate, to obtain the candidate mappings relation of said candidate page script and the preparatory trigger action information of candidate; Then, said updating device 17 ' concerns according to said candidate mappings, sets up or upgrades said script library.Particularly; There are the candidate page script and the preparatory trigger action information of candidate of corresponding relation for one or more groups; Analytical equipment passes through such as modes such as page parsings; Obtain the corresponding script describing sequence of said candidate page script; Again the candidate vector that is made up of pairing script describing sequence of candidate page script and the preparatory trigger action information of candidate is carried out cluster analysis; Obtain one or more clusters and corresponding cluster is described vector, and then describe vector by each cluster and confirm the candidate mappings relation, promptly this cluster part of describing corresponding script describing sequence in the vector and this cluster are described the candidate mappings relation between the part of the preparatory trigger action information of corresponding candidate in the vector; Then, updating device 17 ' concerns according to said candidate mappings, sets up or upgrades said script library.Preferably; For candidate page script corresponding to the preparatory trigger action information of identical or close candidate; Analytical equipment obtains the corresponding script describing sequence of said candidate page script through such as modes such as page parsings, again these script describing sequences is carried out cluster analysis; The cluster that obtains one or more clusters and correspondence thereof is described sequence, and then confirms that the candidate mappings that each cluster is described between the preparatory trigger action information of the sequence candidate corresponding with it concerns.At this, cluster analysis is operated adoptable algorithm and is included but not limited to hierarchical clustering method, decomposition method, addition method, dynamic clustering method, clustering ordered samples, overlapping cluster and fuzzy clustering etc. are arranged.Adopt this analytical equipment; Communication mode when page deriving means 11 ' such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain from this third party device and to intend when offering subscriber equipment and comprising the accession page of page script; Said coalignment 12 ' carries out the matching capacity of the script library of matching inquiry according to the script relevant information of said page script can be more and more stronger; That is; Can be more and more abundanter in the said script library such as the mapping relations between candidate page script and the preparatory trigger action information of candidate; Thereby the network equipment of the present invention can carry out matching inquiry according to the script relevant information of page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script, and when retrieval obtains said preparatory trigger action information, directly said page script triggered to handle in advance and obtains page; So that significantly reduce the interaction times between user and the server, the web page browsing that promotes the user is experienced.Those skilled in the art will be understood that above-mentioned one or more groups corresponding relation to candidate page script and the preparatory trigger action information of candidate carries out cluster analysis and is merely for example with the mode of the candidate mappings relation that obtains said candidate page script and the preparatory trigger action information of candidate; Other one or more groups corresponding relations to candidate page script and the preparatory trigger action information of candidate existing or that possibly occur from now on carry out cluster analysis with the mode of the candidate mappings relation that obtains said candidate page script and the preparatory trigger action information of candidate as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Fig. 3 illustrates the method flow diagram that is used for the page script of the page is triggered in advance processing according to a further aspect of the present invention.Wherein, be used for the network equipment that page script to the page triggers processing in advance and include but not limited to the cloud that computing machine, network host, single network server, a plurality of webserver collection or a plurality of server constitute.At this, cloud is by constituting based on the great amount of calculation machine of cloud computing (Cloud Computing) or the webserver, and wherein, cloud computing is a kind of of Distributed Calculation, a super virtual machine of being made up of the loosely-coupled computing machine collection of a group.
With reference to Fig. 3, in step S1, the network equipment obtains intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script.Particularly; The communication mode of application programming interfaces (API) that the said network equipment is for example provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device, wherein, said accession page comprises page script; Perhaps, the accessing page request that the said network equipment sends according to said subscriber equipment receives the accession page that the plan of obtaining based on said accessing page request from page server offers subscriber equipment, and wherein, said accession page comprises page script.At this, said communication mode includes but not limited to based on the mobile communication of 3GPP, LTE, WIMAX, based on the computer network communication of TCP/IP, udp protocol and based on close range wireless communication modes of bluetooth, infrared transmission standard etc.Those skilled in the art will be understood that above-mentioned obtaining intend the mode offer subscriber equipment and to comprise the accession page of page script and be merely for example; Other existing or obtaining of possibly occurring are from now on intended the mode of accession page offer subscriber equipment and to comprise page script as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S2, the said network equipment carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script.Particularly; The said network equipment offers the accession page of subscriber equipment and the page script in this accession page according to the plan of obtaining among the step S1; Through such as this page script and/or this accession page are carried out modes such as dissection process; Obtain the script relevant information in the said page script; Such as the function keyword message of the element type information of said page script, said page script, the pairing event type information of said page script or the like; And in the script library, carry out matching inquiry through the script relevant information of said page script, with retrieval and the corresponding preparatory trigger action information of said page script, such as showing the pairing checking picture of identifying code, activate input window, switching page-tag or the like.For example; Supposing that plan that the said network equipment obtains offers in the accession page of subscriber equipment contains one section page script; Said page script is used for showing and the corresponding checking picture of identifying code; At this, when said page script not being carried out any processing, the user only triggers corresponding mouse click event and can show and the corresponding checking picture of said identifying code in said accession page; The said network equipment in step S2 according to the script relevant information of said page script; In the script library, carry out matching inquiry; And when said script library comprised the mapping relations between above-mentioned page script and the preparatory trigger action information, retrieval obtained and the corresponding preparatory trigger action information of said page script; Perhaps, when said script library did not comprise the mapping relations between above-mentioned page script and the preparatory trigger action information, retrieval did not obtain and the corresponding preparatory trigger action information of said page script.At this, said script library stores the mapping relations between page script and the preparatory trigger action information; It comprises script library in the said network equipment, through the script library in network and the third party device that the said network equipment is connected.Those skilled in the art will be understood that above-mentioned script relevant information according to said page script is carried out matching inquiry in the script library mode is merely for example; Other script relevant informations according to said page script existing or that possibly occur are from now on carried out matching inquiry in the script library mode is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S3, when the said network equipment obtains said preparatory trigger action information in retrieval, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page.Particularly, the said network equipment carries out matching inquiry with the script relevant information of said page script in the script library, to obtain and the corresponding preparatory trigger action information of said page script; Then, in step S3, when the retrieval of the said network equipment obtains said preparatory trigger action information, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page.For example; Retrieve in step S2 when the said network equipment and to obtain comprising and show and during checking picture that identifying code is corresponding with the corresponding preparatory trigger action information of said page script; The said network equipment is this preparatory trigger action information of basis in step S3; Said page script is triggered processing in advance, the said checking picture in the said accession page is shown in advance, thereby shown the page of verifying picture.Can know from the operating process that the said network equipment is carried out, provide to the page of said subscriber equipment to have shown and the corresponding checking picture of said identifying code that the user only needs in the identifying code input frame, directly to import and gets final product; By contrast; Page script is not triggered processing in advance in the prior art; Provide to the accession page of said subscriber equipment and do not show and the corresponding checking picture of said identifying code that the user just can see said checking picture after having only operations such as execution such as mouse click event or keyboard incoming event.Thereby the said network equipment is handled based on the preparatory triggering of said page script can reduce the interactive operation number of times between user and the server significantly, and the network browsing that promotes the user is experienced.At this, the preparatory triggering that said page script carries out to be handled, the existing triggering processing mode of the said page script of being grasped with those skilled in the art for example starts when detecting the corresponding trigger condition of said page script and carries out this page script.Identical or basic identical.For example, the preparatory triggering of said page script being carried out is handled and is included but not limited to: directly start and carry out this page script; Perhaps simulate the pairing trigger event of this page script, and when detecting the trigger condition of said page script correspondence, start this page script of execution; Perhaps simulate the pairing trigger pip of this trigger event, start and carry out this page script.Those skilled in the art will be understood that and above-mentionedly according to said preparatory trigger action information said page script triggered processing in advance and be merely for example with the mode of the corresponding page of said accession page obtaining; Other existing or possibly occur from now on according to said preparatory trigger action information to said page script trigger in advance processing with obtain with the mode of the corresponding page of said accession page as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
In step S4, the said network equipment provides said page to said subscriber equipment.Particularly; Through step S3 said page script is triggered processing in advance; After obtaining said page; The said network equipment like http or https, offers said subscriber equipment with said page through such as application programming interfaces (API) that himself provided or the communication mode of arranging.At this, said communication mode includes but not limited to: based on the mobile communication of 3GPP, LTE, WIMAX; Computer network communication based on TCP/IP, udp protocol; Based near radio transmission mode of bluetooth, infrared transmission standard etc.Said network includes but not limited to internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN network, wireless self-organization network (Ad Hoc network) etc.Those skilled in the art will be understood that above-mentioned said page is provided to the mode of said subscriber equipment is merely for example; The mode of other existing or possibly occur from now on said page is provided to said subscriber equipmenies is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
(with reference to Fig. 3) in a preferred embodiment; Said step S3 comprises detection step S31 (not shown) and treatment step S32 (not shown); Wherein, when the retrieval of the said network equipment obtains said preparatory trigger action information, in step S31, detect and whether satisfy the trigger condition that said page script is triggered in advance processing; Then when detecting when satisfying said trigger condition; In step S32,, said page script is triggered processing in advance, to obtain said page according to said preparatory trigger action information.Followingly the preferred embodiment is described in detail with reference to Fig. 3; Wherein, the said network equipment obtains through step S1 and intends the accession page that offers subscriber equipment, and said accession page comprises page script; Then in the script relevant information of step S2 according to said page script; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script, then when retrieval obtains said preparatory trigger action information; In step S31, detect and whether satisfy the trigger condition that said page script is triggered in advance processing; And, in step S32,, said page script is triggered processing in advance according to said preparatory trigger action information detecting when satisfying said trigger condition; To obtain said page, the last said network equipment provides the page that is obtained to said subscriber equipment in step S4.Its detailed process for for simplicity, is contained in this with way of reference with aforementioned identical with reference to the performed process of step S1, step S2 and step S4 among the described embodiment of Fig. 3, does not give unnecessary details and do not do.
Preferably, said trigger condition comprise following at least each:
1) comprises the binding incident corresponding to be carried out in the said accession page with said page script;
2) be empty with the corresponding display properties assignment of said page script in the said accession page.
1) with said trigger condition comprise comprise in the said accession page with said page script binding incident corresponding to be carried out be example; In step S2; When the script relevant information of the said network equipment according to said page script; In the script library, carry out matching inquiry, retrieval obtains and the corresponding preparatory trigger action information of said page script, such as showing and the corresponding checking picture of identifying code; Suppose to comprise demonstration identifying code input frame with said page script binding incident corresponding to be carried out; After retrieval obtains said preparatory trigger action information (showing the checking picture); The said network equipment detects whether satisfy the trigger condition that said page script is triggered in advance processing; Promptly detect and whether comprise the binding incident that shows the identifying code input frame in the said accession page; For example when comprising demonstration identifying code input frame in the said accession page, the then said network equipment detects the trigger condition that said page script is triggered in advance processing for satisfying; Then, in step S32, the said network equipment triggers processing according to said preparatory trigger action information to said page script in advance, as the said checking picture in the said accession page is shown in advance, thereby has been shown the page of checking picture.At this, the said network equipment is through detecting whether comprise the binding incident corresponding to be carried out with said page script in the said accession page such as the page script in this accession page and/or this accession page are carried out modes such as dissection process.
2) with said trigger condition comprise in the said accession page with the corresponding display properties assignment of said page script be sky as an example; When retrieval obtains and the corresponding preparatory trigger action information of said page script, when showing with the corresponding checking picture of identifying code; The said network equipment triggers said page script and generates the identifying code control; And whether the display properties assignment that detects in the said identifying code control is empty; Have or not property value such as the vvcode that detects the display properties src assignment in the html file or detect in the PHP file, and when in said accession page, be empty with the corresponding display properties assignment of said page script, the said network equipment detects the trigger condition that said page script is triggered in advance processing for satisfied; Then in step S32; According to said preparatory trigger action information, said page script is triggered processing in advance, to obtain to have shown the page of verifying picture.
Preferably, said processing unit when not satisfying said trigger condition, with said accession page as said page.Particularly, when retrieval obtained said preparatory trigger action information, the said network equipment detected to not satisfying the trigger condition that said page script is triggered in advance processing, then with said accession page as said page.For example; After retrieval obtains such as the said preparatory trigger action information that shows the pairing checking picture of identifying code; The said network equipment detects to not satisfying the trigger condition that said page script is triggered in advance processing according to said preparatory trigger action information; Be presented in the said accession page and need not such as, checking picture said page script has been triggered when handling in advance, with said accession page as said page.
Preferably, said script library comprise following at least each:
1) identifying code pattern to be shown;
2) input window is treated enable mode;
3) the to be switched pattern of page-tag.
1) comprises that with said script library identifying code pattern to be shown is an example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprised page script, in step S2, the said network equipment was according to the script relevant information of said page script; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script.For example; When said page script is verified picture corresponding to demonstration; The said network equipment is according to the script relevant information of said page script; Matching inquiry arrives and the corresponding identifying code of said page script pattern to be shown in the script library, and according to the pairing preparatory trigger action information of identifying code pattern to be shown described in this script library, obtains the corresponding preparatory trigger action information of said page script.Then; When retrieving said preparatory trigger action information; The said network equipment according to said preparatory trigger action information, triggers processing to said page script in advance in step S3, to obtain and the corresponding page of said accession page; At last, the said network equipment provides the page that is obtained to said subscriber equipment in step S4.
2) comprise that with said script library input window treats that enable mode is an example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprised page script, in step S2, the said network equipment was according to the script relevant information of said page script; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script.For example; Said page script is when activating input window; The said network equipment is according to the script relevant information of said page script; Matching inquiry is to treating enable mode with the corresponding input window of said page script in the script library, and treats the pairing preparatory trigger action information of enable mode according to input window described in this script library, obtains the corresponding preparatory trigger action information of said page script; Such as; The said network equipment will be presented in the said accession page with user name input frame and the password input frame under the corresponding state of activation of said page script according to said preparatory trigger action information in the lump, and will comprise the said user name input frame that has been shown as state of activation and the page of password input frame offers subscriber equipment.
3) comprise that with said script library the to be switched pattern of page-tag is an example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers said subscriber equipment from this third party device; And when said accession page comprised page script, in step S2, the said network equipment was according to the script relevant information of said page script; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script.For example; Said page script is when switching page-tag; The said network equipment is according to the script relevant information of said page script; Matching inquiry arrives and the to be switched pattern of the corresponding page-tag of said page script in the script library, and according to the pairing preparatory trigger action information of the to be switched pattern of page-tag described in this script library, obtains the corresponding preparatory trigger action information of said page script; Such as; Said network equipment is according to said preparatory trigger action information, and the data message under the new page label after will switching with the corresponding page-tag of said page script is presented in the said accession page, and the page that will comprise the data message under the said new page label offers subscriber equipment.Those skilled in the art will be understood that the included pattern of above-mentioned script library is merely for example; The pattern of other script library existing or that possibly occur from now on is as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
Preferably, said script relevant information comprise following at least each:
1) the element type information of said page script;
2) the function keyword message of said page script;
3) the pairing event type information of said page script.
1) comprises that with said script relevant information the element type information of said page script is example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; In step S2, the said network equipment is through such as resolving said page script and/or said accession page, to obtain the element type information of said page script; And in said script library, carry out matching inquiry according to the element type information of said page script, with retrieval and the corresponding preparatory trigger action information of said page script.
2) comprise that with said script relevant information the function keyword message of said page script is an example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; In step S2, the said network equipment is through such as resolving said page script and/or said accession page, to obtain the function keyword message of said page script; And in said script library, carry out matching inquiry according to the function keyword message of said page script, with retrieval and the corresponding preparatory trigger action information of said page script.
3) comprise that with said script relevant information the pairing event type information of said page script is example; Communication mode when the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; And when said accession page comprises page script; In step S2, the said network equipment through such as to said page script with or said accession page resolve, to obtain the pairing event type information of said page script; And in said script library, carry out matching inquiry according to the pairing event type information of said page script, with retrieval and the corresponding preparatory trigger action information of said page script.Preferably; In step S2; The said network equipment is through such as said page script is carried out code analysis; With the combination in any of the above-mentioned script relevant information that obtains said page script, and in said script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script according to the combination in any of said script relevant information.Those skilled in the art will be understood that above-mentioned script relevant information is merely for example, and other script relevant informations existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.
Preferably, said page script is based on following any script at least:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
Above-mentioned HTML, XML, JavaScript, AJAX, PHP and ASPX script all can constitute said page script; Is example with said page script based on the JavaScript script; Through said JavaScript; Can be used for for html web page adds dynamic function, such as the various operations of response from the user.The communication mode of the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement; Obtain the accession page that plan offers subscriber equipment from this third party device; Said accession page comprises the page script based on above-mentioned any script; And the said network equipment is discerned based on the script pattern to said page script; Retrieving corresponding preparatory trigger action information, and selectively said page script is triggered processing in advance according to said preparatory trigger action information, thus provide with the corresponding page of said accession page in; Reduce the interaction times between user and the server, the web page browsing that promotes the user is experienced.Those skilled in the art will be understood that above-mentioned script is merely for example, and other scripts existing or that possibly occur from now on also should be included in the protection domain of the present invention, and be contained in this with way of reference as applicable to the present invention.
Fig. 4 illustrates the method flow diagram that is used for the page script of the page is triggered in advance processing in accordance with a preferred embodiment of the present invention.In method shown in Figure 4, step S1 ', step S2 ' and step S4 ' are same or similar with step S1, step S2 and step S4 shown in Figure 3 respectively, for describing for simplicity, so locate to repeat no more, and mode by reference is contained in this.
Different with step S3 shown in Figure 3, when the step S3 ' among Fig. 4 did not obtain said preparatory trigger action information in retrieval, the accession page that the said network equipment is obtained at step S1 ' was as said page.For example, suppose in step S1 ' that the plan that the said network equipment obtains offers in the accession page of subscriber equipment and contains one section page script, said page script is used for showing and the corresponding checking picture of identifying code; In step S2 '; The said network equipment is according to the script relevant information of said page script; In the script library, carry out matching inquiry; And when said script library did not comprise with the corresponding preparatory trigger action information of this page script, said network equipment retrieval did not obtain and the corresponding preparatory trigger action information of said page script; In step S3 ', the said network equipment obtains accession page as said page with institute then; And in step S4 ', the said network equipment provides said page to said subscriber equipment.At this, said script library stores the mapping relations between page script and the preparatory trigger action information; It comprises script library in the said network equipment, through the script library in network and the third party device that the said network equipment is connected.
(with reference to Fig. 4) in a preferred embodiment, this method also comprises step S5 ', step S6 ' and step S7 ', wherein; In step S5 ', the said network equipment obtains corresponding second accession page of access request that sends based on said page with said subscriber equipment, then; In step S6 '; The said network equipment compares said accession page and said second accession page, obtaining the mapping relations of said page script and said preparatory trigger action information, and; In step S7 ', the said network equipment is set up according to the mapping relations of new said page script that obtains and said preparatory trigger action information or is upgraded said script library.Followingly the preferred embodiment is described in detail with reference to Fig. 4, wherein, in step S1 '; The communication mode of the said network equipment such as application programming interfaces (API) that provided through third party's equipment such as search engines or agreement obtains the accession page that plan offers subscriber equipment from this third party device, and said accession page comprises page script; Then, in step S2 ', the said network equipment is according to the script relevant information of said page script; In the script library, carry out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script, then; In step S3 '; The said network equipment is detecting when not obtaining said preparatory trigger action information, with the accession page that is obtained as said page, and; In step S4 ', the said network equipment provides said page to said subscriber equipment.Then; In step S5 ', the said network equipment obtains corresponding second accession page of access request that sends based on said page with said subscriber equipment, then; At the network equipment described in the step S6 ' said accession page and said second accession page are compared; The for example relatively variation of the show state of corresponding page elements among both, obtaining the mapping relations of said page script and said preparatory trigger action information, and; In step S7 ', the said network equipment is set up according to the mapping relations of new said page script that obtains and said preparatory trigger action information or is upgraded said script library.Therefore, the said next time network equipment according to the script relevant information of said page script, carries out matching inquiry in the script library after setting up or upgrading in step S2 '; With retrieval and the corresponding preparatory trigger action information of said page script; Follow the said network equipment when detection obtains said preparatory trigger action information, in step S3 ',, said page script is triggered processing in advance according to said preparatory trigger action information; To obtain and the corresponding page of said accession page; At last, in step S4 ', the said network equipment provides said page to said subscriber equipment.Its detailed process for for simplicity, is contained in this with way of reference with aforementioned identical with reference to the performed process of step S1 ', step S2 ' and step S4 ' among the described embodiment of Fig. 3, does not give unnecessary details and do not do.
Preferably; This method also comprises the analytical procedure (not shown); In the said analytical procedure; The said network equipment carries out cluster analysis to one or more groups corresponding relation of candidate page script and the preparatory trigger action information of candidate, to obtain the candidate mappings relation of said candidate page script and the preparatory trigger action information of candidate; Then, in step S7 ', the said network equipment concerns according to said candidate mappings, sets up or upgrades said script library.Particularly; There are the candidate page script and the preparatory trigger action information of candidate of corresponding relation for one or more groups; The said network equipment is in analytical procedure; Through such as modes such as page parsings; Obtain the corresponding script describing sequence of said candidate page script, again the candidate vector that is made up of pairing script describing sequence of candidate page script and the preparatory trigger action information of candidate is carried out cluster analysis, obtain one or more clusters and corresponding cluster description vector thereof; And then describe vector by each cluster and confirm the candidate mappings relation, promptly this cluster part of describing corresponding script describing sequence in the vector and this cluster are described the candidate mappings relation between the part of the preparatory trigger action information of corresponding candidate in the vector; Then, in step S7 ', the said network equipment concerns according to said candidate mappings, sets up or upgrades said script library.Preferably; For the candidate page script corresponding to the preparatory trigger action information of identical or close candidate, in analytical procedure, the said network equipment passes through such as modes such as page parsings; Obtain the corresponding script describing sequence of said candidate page script; Again these script describing sequences are carried out cluster analysis, the cluster that obtains one or more clusters and correspondence thereof is described sequence, and then confirms that the candidate mappings that each cluster is described between the preparatory trigger action information of the sequence candidate corresponding with it concerns.At this, cluster analysis is operated adoptable algorithm and is included but not limited to hierarchical clustering method, decomposition method, addition method, dynamic clustering method, clustering ordered samples, overlapping cluster and fuzzy clustering etc. are arranged.Adopt this network equipment; When in step S1 ' such as the application programming interfaces (API) that provided through third party's equipment such as search engines or the agreement communication mode; Obtain from this third party device and to intend when offering subscriber equipment and comprising the accession page of page script; The said network equipment carries out the matching capacity of the script library of matching inquiry according to the script relevant information of said page script can be more and more stronger; That is, can be more and more abundanter in the said script library such as the mapping relations between candidate page script and the preparatory trigger action information of candidate, thereby the network equipment of the present invention can carry out matching inquiry according to the script relevant information of page script in the script library; With retrieval and the corresponding preparatory trigger action information of said page script; And when retrieval obtains said preparatory trigger action information, directly said page script is triggered to handle in advance obtaining page, so that significantly reduce the interaction times between user and the server, the web page browsing that promotes the user is experienced.Those skilled in the art will be understood that above-mentioned one or more groups corresponding relation to candidate page script and the preparatory trigger action information of candidate carries out cluster analysis and is merely for example with the mode of the candidate mappings relation that obtains said candidate page script and the preparatory trigger action information of candidate; Other one or more groups corresponding relations to candidate page script and the preparatory trigger action information of candidate existing or that possibly occur from now on carry out cluster analysis with the mode of the candidate mappings relation that obtains said candidate page script and the preparatory trigger action information of candidate as applicable to the present invention; Also should be included in the protection domain of the present invention, and be contained in this with way of reference.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and under the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore; No matter from which point; All should regard embodiment as exemplary; And be nonrestrictive, scope of the present invention is limited accompanying claims rather than above-mentioned explanation, therefore is intended to the implication of the equivalents that drops on claim and all changes in the scope are included in the present invention.Should any Reference numeral in the claim be regarded as limit related claim.In addition, obviously other unit or step do not got rid of in " comprising " speech, and odd number is not got rid of plural number.A plurality of unit of stating in system's claim or device also can be realized through software or hardware by a unit or device.The first, the second word such as grade is used for representing title, and does not represent any specific order.

Claims (20)

1. one kind is used for method that the page script of accession page is handled in the network equipment, wherein, said method comprising the steps of:
A obtains and intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script;
B carries out matching inquiry according to the script relevant information of said page script in the script library, with retrieval and the corresponding preparatory trigger action information of said page script;
When c obtains said preparatory trigger action information when retrieval, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain and the corresponding page of said accession page;
D provides said page to said subscriber equipment.
2. method according to claim 1, wherein, said step c comprises:
When c1 obtains said preparatory trigger action information when retrieval, detect and whether satisfy the trigger condition that said page script is triggered in advance processing;
C2 according to said preparatory trigger action information, triggers processing to said page script, to obtain said page in advance when satisfying said trigger condition.
3. method according to claim 2, wherein, said trigger condition comprise following at least each:
Comprise the to be carried out binding incident corresponding in the-said accession page with said page script;
Be empty with the corresponding display properties assignment of said page script in the-said accession page.
4. according to claim 2 or 3 described methods, wherein, said step c2 also comprises:
-when not satisfying said trigger condition, with said accession page as said page.
5. according to each described method in the claim 1 to 4, wherein, said step c also comprises:
-when retrieval does not obtain said preparatory trigger action information, with said accession page as said page.
6. method according to claim 5, wherein, said method also comprises:
X1 obtains corresponding second accession page of access request that sends based on said page with said subscriber equipment;
X2 compares said accession page and said second accession page, to obtain the mapping relations of said page script and said preparatory trigger action information;
X3 is according to said mapping relations, sets up or upgrades said script library.
7. method according to claim 6, wherein, said method also comprises:
-one or more groups corresponding relation of candidate page script and the preparatory trigger action information of candidate is carried out cluster analysis, to obtain the candidate mappings relation of said candidate page script and the preparatory trigger action information of candidate;
Wherein, said step x3 also comprises:
-according to said candidate mappings relation, set up or upgrade said script library.
8. according to each described method in the claim 1 to 7, wherein, said script library comprise following at least each:
-identifying code pattern to be shown;
-input window is treated enable mode;
The to be switched pattern of-page-tag.
9. according to each described method in the claim 1 to 8, wherein, said script relevant information comprise following at least each:
The element type information of-said page script;
The function keyword message of-said page script;
The pairing event type information of-said page script.
10. according to each described method in the claim 1 to 9, wherein, said page script is based on following any script at least:
-HTML;
-XML;
-JavaScript;
-AJAX;
-PHP;
-ASPX。
11. one kind is used for the network equipment that the page script of accession page is handled, wherein, the said network equipment comprises:
Page deriving means is used to obtain and intends the accession page that offers subscriber equipment, and wherein, said accession page comprises page script;
Coalignment is used for the script relevant information according to said page script, in the script library, carries out matching inquiry, with retrieval and the corresponding preparatory trigger action information of said page script;
Treating apparatus is used for when retrieval obtains said preparatory trigger action information, according to said preparatory trigger action information, said page script being triggered processing in advance, to obtain and the corresponding page of said accession page;
Generator is used for said page is provided to said subscriber equipment.
12. the network equipment according to claim 11, wherein, said treating apparatus comprises:
Detecting unit is used for when retrieval obtains said preparatory trigger action information, detecting and whether satisfying the trigger condition that said page script is triggered in advance processing;
Processing unit is used for when satisfying said trigger condition, according to said preparatory trigger action information, said page script is triggered processing in advance, to obtain said page.
13. the network equipment according to claim 12, wherein, said trigger condition comprise following at least each:
Comprise the to be carried out binding incident corresponding in the-said accession page with said page script;
Be empty with the corresponding display properties assignment of said page script in the-said accession page.
14. according to the claim 12 or the 13 described network equipments, wherein, said processing unit also is used for:
-when not satisfying said trigger condition, with said accession page as said page.
15. according to each described network equipment in the claim 11 to 14, wherein, said treating apparatus also is used for:
-when retrieval does not obtain said preparatory trigger action information, with said accession page as said page.
16. the network equipment according to claim 15, wherein, the said network equipment also comprises:
First deriving means is used to obtain corresponding second accession page of access request that sends based on said page with said subscriber equipment;
Comparison means is used for said accession page and said second accession page are compared, to obtain the mapping relations of said page script and said preparatory trigger action information;
Updating device is used for according to said mapping relations, sets up or upgrades said script library.
17. the network equipment according to claim 16, wherein, the said network equipment also comprises analytical equipment, is used for
-one or more groups corresponding relation of candidate page script and the preparatory trigger action information of candidate is carried out cluster analysis, to obtain the candidate mappings relation of said candidate page script and the preparatory trigger action information of candidate;
Wherein, said updating device also is used for:
-according to said candidate mappings relation, set up or upgrade said script library.
18. according to each described network equipment in the claim 11 to 17, wherein, said script library comprise following at least each:
-identifying code pattern to be shown;
-input window is treated enable mode;
The to be switched pattern of-page-tag.
19. according to each described network equipment in the claim 11 to 18, wherein, said script relevant information comprise following at least each:
The element type information of-said page script;
The function keyword message of-said page script;
The pairing event type information of-said page script.
20. according to each described network equipment in the claim 11 to 19, wherein, said page script is based on following any script at least:
-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 true CN102402588A (en) 2012-04-04
CN102402588B CN102402588B (en) 2016-12-14

Family

ID=

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262713A (en) * 2014-06-24 2016-01-20 北京七品科技有限公司 Online secure access control method for commodities having own intellectual properties
WO2016112625A1 (en) * 2015-01-12 2016-07-21 芋头科技(杭州)有限公司 System realizing script operation in preset embedded system
CN106202097A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Picture display method and device
CN106250454A (en) * 2012-04-28 2016-12-21 阿里巴巴集团控股有限公司 The loading method of a kind of page script and device

Citations (4)

* 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
CN101650713A (en) * 2008-08-13 2010-02-17 突触计算机系统(上海)有限公司 Method and device for realizing tabs in browsers
CN101777072A (en) * 2010-01-22 2010-07-14 金蝶软件(中国)有限公司 Device and method for generating image hot area and application system

Patent Citations (4)

* 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
CN101650713A (en) * 2008-08-13 2010-02-17 突触计算机系统(上海)有限公司 Method and device for realizing tabs in browsers
CN101777072A (en) * 2010-01-22 2010-07-14 金蝶软件(中国)有限公司 Device and method for generating image hot area and application system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250454A (en) * 2012-04-28 2016-12-21 阿里巴巴集团控股有限公司 The loading method of a kind of page script and device
CN106250454B (en) * 2012-04-28 2020-04-14 阿里巴巴集团控股有限公司 Page script loading method and device
CN105262713A (en) * 2014-06-24 2016-01-20 北京七品科技有限公司 Online secure access control method for commodities having own intellectual properties
WO2016112625A1 (en) * 2015-01-12 2016-07-21 芋头科技(杭州)有限公司 System realizing script operation in preset embedded system
KR20170105054A (en) 2015-01-12 2017-09-18 위토우 테크놀로지 (항저우) 씨오., 엘티디. Script execution system during pre-installation of embedded system
CN106202097A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Picture display method and device
CN106202097B (en) * 2015-05-05 2019-12-03 阿里巴巴集团控股有限公司 Picture display method and device

Similar Documents

Publication Publication Date Title
KR101791798B1 (en) Method and apparatus for identifying web address
CN102306171B (en) A kind of for providing network to access suggestion and the method and apparatus of web search suggestion
CN102333122B (en) Downloaded resource provision method, device and system
CN102968451B (en) The browser form page loads method and the client of website data
CN103714119B (en) A kind for the treatment of method and apparatus of browser data
CN102298614A (en) Method for determining collection category of page collection information and device and equipment
CN103064863A (en) Method and equipment of providing recommend information
KR20160125960A (en) Virus processing method, apparatus, system and device, and computer storage medium
CN102651856A (en) Method, system and device for improving Internet surfing security of terminal
CN103955495B (en) The method for down loading and device of page child resource
EP3482556B1 (en) Privacy aware intent resolution with external sources
CN104991896A (en) Method and apparatus for analyzing two-dimension codes
CN104143008A (en) Method and device for detecting phishing webpage based on picture matching
CN103986731A (en) Method and device for detecting phishing web pages through picture matching
CN102968454A (en) Method and equipment for obtaining search results of popularization object
WO2019083950A1 (en) Systems and methods to detect and notify victims of phishing activities
CN103810268A (en) Search result recommendation information loading method, device and system and URL detection method, device and system
CN109391620B (en) Method, system, server and storage medium for establishing abnormal behavior judgment model
CN102546811A (en) Method and device for arranging browser plugin on mobile terminal
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN102946391B (en) The method of prompting malice network address and a kind of browser in a kind of browser
CN106790593A (en) A kind of page processing method and device
CN103500114A (en) Method and device for installing application program
CN104143110A (en) Two-dimensional code generating method with web site information
CN105515882B (en) Website security detection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant