CN105302825A - Method and apparatus for opening web page - Google Patents

Method and apparatus for opening web page Download PDF

Info

Publication number
CN105302825A
CN105302825A CN201410304777.7A CN201410304777A CN105302825A CN 105302825 A CN105302825 A CN 105302825A CN 201410304777 A CN201410304777 A CN 201410304777A CN 105302825 A CN105302825 A CN 105302825A
Authority
CN
China
Prior art keywords
webpage
auxiliary process
auxiliary
network addresses
reopening
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
CN201410304777.7A
Other languages
Chinese (zh)
Other versions
CN105302825B (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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410304777.7A priority Critical patent/CN105302825B/en
Publication of CN105302825A publication Critical patent/CN105302825A/en
Application granted granted Critical
Publication of CN105302825B publication Critical patent/CN105302825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a method and an apparatus for opening a web page, and belongs to the technical field of a computer. The method comprises: a master process sends a first web page opening instruction carrying a target network address to a first auxiliary process, so that the first auxiliary process performs an operation of opening a corresponding web page according to the target network address; if the web page opening is failed, web page reopening information is sent to the master process; when the web page reopening information sent by the first auxiliary process is received, the master process, according to the web page reopening information, determines a network address corresponding to the first auxiliary process as the target network address; and the master process establishes a second auxiliary process, and sends a second web page opening instruction carrying the target network address to the second auxiliary process, so that the second auxiliary process performs an operation of opening a corresponding web page according to the target network address. With the adoption of the method and the apparatus, the efficiency of opening the web page can be improved.

Description

Open the method and apparatus of webpage
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus opening webpage.
Background technology
Along with the development of Internet technology, become the main path of people's obtaining information by internet obtaining information, browser is that people access one of the most frequently used instrument in internet.
Usually, when user is by certain network address of browser access, the host process of browser can create webpage process, and will the webpage open command of this network address be carried, send to this webpage process, webpage process, according to the network address of carrying in webpage open command, opens corresponding webpage in this webpage process.In the process of opening webpage, often can run into the webpage that the factors such as unstable networks cause and open failed situation.For this situation, user can refresh button in click browser, to trigger the process re-executing and open webpage.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
When re-executing the process of opening webpage by said method, need the refresh button in user's click browser, to trigger the process performing and open webpage, like this, make the operation of opening webpage more loaded down with trivial details, cause the inefficiency of opening webpage.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and apparatus opening webpage.Described technical scheme is as follows:
First aspect, provide a kind of method of opening webpage, described method comprises:
Host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make described first auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage, if open the failure of described webpage, then send webpage reopening message to described host process;
When receiving the webpage reopening message that described first auxiliary process sends, described host process, according to described webpage reopening message, determines that the network address corresponding to described first auxiliary process is described destination network addresses;
Described host process sets up the second auxiliary process, and sends to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, performs the operation of opening corresponding webpage.
Second aspect, provide a kind of method of opening webpage, described method comprises:
First auxiliary process receives the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage;
If open the failure of described webpage, then described first auxiliary process sends webpage reopening message to described host process; To make described host process according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses, set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses;
Self closes by described first auxiliary process.
The third aspect, provide and a kind ofly open the host process set up in the device of webpage, described host process comprises:
Sending module, for sending to the first auxiliary process the first webpage open command carrying destination network addresses, to make described first auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage, if open the failure of described webpage, then send webpage reopening message to described host process;
Determination module, for when receiving the webpage reopening message that described first auxiliary process sends, according to described webpage reopening message, determines that the network address corresponding to described first auxiliary process is described destination network addresses;
Set up module, for setting up the second auxiliary process, and sending to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, performing the operation of opening corresponding webpage.
Fourth aspect, provide and a kind ofly open the first auxiliary process set up in the device of webpage, described first auxiliary process comprises:
Receiver module, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage;
Sending module, if for opening the failure of described webpage, then send webpage reopening message to described host process; To make described host process according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses, set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses;
Closing module, for closing self.
5th aspect, provides a kind of device opening webpage, and setting up in described device has host process and the first auxiliary process, wherein:
Described host process, for sending to the first auxiliary process the first webpage open command carrying destination network addresses; When receiving the webpage reopening message that described first auxiliary process sends, according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses; Set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage;
Described first auxiliary process, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage; If open the failure of described webpage, then send webpage reopening message to described host process; Self is closed.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram opening webpage that the embodiment of the present invention provides;
Fig. 2 is a kind of method flow diagram opening webpage that the embodiment of the present invention provides;
Fig. 3 is a kind of method flow diagram opening webpage that the embodiment of the present invention provides;
Fig. 4 is a kind of method flow diagram opening webpage that the embodiment of the present invention provides;
Fig. 5 is a kind of structural representation opening the host process set up in the device of webpage that the embodiment of the present invention provides;
Fig. 6 is a kind of structural representation opening the first auxiliary process set up in the device of webpage that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method of opening webpage, the method can be realized jointly by the host process set up in terminal and auxiliary process.
As shown in Figure 1, in the method, the treatment scheme of host process can comprise following step:
Step 101, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, performs the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process.
Step 102, when receiving the webpage reopening message that the first auxiliary process sends, host process, according to webpage reopening message, determines that the network address corresponding to the first auxiliary process is destination network addresses.
Step 103, host process sets up the second auxiliary process, and sends to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, performs the operation of opening corresponding webpage.
As shown in Figure 2, in the method, the treatment scheme of the first auxiliary process can comprise following step:
Step 201, the first auxiliary process receives the first webpage open command carrying destination network addresses that host process sends, and according to destination network addresses, performs the operation of opening corresponding webpage.
Step 202, if open this webpage failure, then the first auxiliary process sends webpage reopening message to host process, to make host process according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, set up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses.
Step 203, self closes by the first auxiliary process.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
Embodiment two
Embodiments provide a kind of method of opening webpage, the method can be realized by terminal.Can be provided with browser in terminal wherein, browser by host process and the multiple auxiliary process set up by host process, can perform the operation of opening webpage.
As shown in Figure 3, the treatment scheme of the method can comprise following step:
Step 301, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses.
Wherein, host process can be in application program (as browser), play the process of control action, auxiliary process can be the process that auxiliary host process completes data processing, and when application program is browser, auxiliary process can be webpage process, and auxiliary process can be created by host process.
In force, when user needs to open certain webpage, the browser installed in terminal can be started, now, terminal can set up the host process of browser, user can in the address field of browser, input the network address of this webpage, as URL (UniformResourceLocator, URL(uniform resource locator)), IP (InternetProtocol, Internet protocol) address etc., when user clicks enter key, host process sets up auxiliary process (i.e. the first auxiliary process), and obtain the network address (i.e. destination network addresses) inputted in address field, host process can use destination network addresses, generate the first webpage open command, send to the first auxiliary process.
Step 302, the first auxiliary process receives the first webpage open command carrying destination network addresses that host process sends, and according to destination network addresses, performs the operation of opening corresponding webpage.
In force, when receiving the first webpage open command that host process sends, first auxiliary process can parse the destination network addresses in the first webpage open command, then, web-page requests can be sent to the server that destination network addresses is corresponding by terminal, when server receives web-page requests, web data corresponding to destination network addresses can be sent to terminal.
Step 303, if open the failure of above-mentioned webpage, then the first auxiliary process sends webpage reopening message to host process.
Wherein, webpage reopening message is for representing that the first auxiliary process opens webpage failure, and asks host process to reopen the message of this webpage.
In force, opening webpage can be unsuccessfully caused by many reasons, and for different situations, the process of above-mentioned steps 303 can be different, the following provide two kinds and can cause the situation of unlatching webpage failure and the respective handling of step 303, specifically can comprise following content:
Situation one, the web data of above-mentioned webpage cannot be got, cause opening webpage failure, accordingly, the processing mode of above-mentioned steps 303 can comprise: when obtaining the web data failure of above-mentioned webpage, first auxiliary process judges to open the failure of above-mentioned webpage, sends webpage reopening message to host process.
In force, the server corresponding to destination network addresses can be sent the time point of request of data as start time point by the first auxiliary process, and the web data that reception server sends, if obtain web data failure, as in the duration pre-set, do not receive web data that server sends or the web data that receives imperfect etc., then the first auxiliary process can judge to open the failure of above-mentioned webpage, now can trigger generating web page reopening message, and send to host process.
Situation two, browser kernel function loads imperfect, makes render process occur mistake, causes opening webpage failure, and accordingly, the processing procedure of above-mentioned steps 303 can be as follows:
Step one, when reaching preset duration after receiving the first webpage open command, whether the browser kernel function of the above-mentioned webpage of correspondence of the current loading of the first auxiliary process detection is complete.
In force, browser kernel can have multiple, as IE (InternetExplorer, web browser) browser kernel, Webkit browser kernel etc., usually, browser needs to play up webpage in the process of opening webpage based on browser kernel, in the process of opening webpage, need first to load corresponding browser kernel function, and then carry out webpage play up based on the browser kernel function loaded.Different browser kernels can arrange different browser kernel functions, can prestore the browser kernel function that various browser kernel is corresponding in terminal.
First auxiliary process can will receive the time point of the first webpage open command, as sart point in time, start timing, simultaneously, first auxiliary process can start as above-mentioned webpage loads browser kernel function, perform the operation of opening above-mentioned webpage, when arriving preset duration, the browser kernel function of current loaded can be checked, whether identical with the browser kernel function prestored, if not identical, then judge that the browser kernel function of the above-mentioned webpage of the correspondence of current loading is imperfect, if identical, then judge that the browser kernel function of the above-mentioned webpage of the correspondence of current loading is complete.
Step 2, if the browser kernel function of the above-mentioned webpage of the correspondence of current loading is imperfect, then the first auxiliary process judges to open the failure of above-mentioned webpage, sends webpage reopening message to host process.
Alternatively, if the browser kernel function of the above-mentioned webpage of the correspondence of current loading is complete, and receiving the complete web data of server transmission, then the first auxiliary process judges that above-mentioned webpage can normally be opened, and then carries out webpage based on the browser kernel function loaded and plays up.
Step 304, when receiving the webpage reopening message that the first auxiliary process sends, host process, according to webpage reopening message, determines that the network address corresponding to the first auxiliary process is destination network addresses.
The processing mode of above-mentioned steps 304 can be varied, a kind of feasible processing mode is below provided, specifically can comprise following content: host process is according to the corresponding relation of the auxiliary process prestored and the network address, determine to send the network address that the first auxiliary process of webpage reopening message is corresponding, the network address determined is destination network addresses.
In force, host process can set up the corresponding relation of auxiliary process and the network address, this corresponding relation can store in table form, when host process sets up certain auxiliary process, it can be the process identification (PID) of this auxiliary course allocation, when the webpage open command carrying the network address is sent to this auxiliary process by host process, can the process identification (PID) of this network address and this auxiliary process be recorded in this corresponding relation, as shown in table 1.
Table 1
Auxiliary process The network address
Process 1 http://www.A.com
Process 2 http://www.B.com
Process 3 http://www.C.com
Process 4 http://www.D.com
The process identification (PID) of the first auxiliary process can be carried in webpage reopening message, when host process receives webpage reopening message, obtain process identification (PID) wherein, and search in above-mentioned mapping table, obtain the network address that the process identification (PID) of the first auxiliary process is corresponding, such as, the process identification (PID) of the first auxiliary process is process 3, by searching mapping table as shown in table 1, the network address that can obtain process 3 correspondence is http://www.C.com, is destination network addresses.
Alternatively, host process can also determine destination network addresses by other means, such as, carries destination network addresses in webpage reopening message, and host process can obtain destination network addresses in the webpage reopening message received.
Step 305, self closes by the first auxiliary process.
In force, the first auxiliary process automatically can generate out code, and perform out code, close the first auxiliary process after sending webpage reopening message to host process.
Above-mentioned steps 305 can also process by other means, such as, after the webpage reopening message that the first auxiliary process that receives sends, host process can notify that self closes by the first auxiliary process, and this process specifically can comprise following content: host process sends process out code to the first auxiliary process.Correspondingly, the processing procedure of above-mentioned steps 305 can be as follows: when receiving the process out code that host process sends, self closes by the first auxiliary process.
In force, when host process receives the webpage reopening message of the first auxiliary process transmission, determine that the first auxiliary process opens the failure of above-mentioned webpage, now can generate process out code, and send to the first auxiliary process, when the first auxiliary process receives process out code, himself is closed.
In the present embodiment, above-mentioned steps 304 and step 305 do not have inevitable precedence relationship in sequential.
Step 306, host process sets up the second auxiliary process, and sends to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, performs the operation of opening corresponding webpage.
In force, host process re-establishes another auxiliary process (being the second auxiliary process), the second webpage open command can be generated according to destination network addresses, and send to the second auxiliary process, second auxiliary process can send web-page requests by terminal to the server that destination network addresses is corresponding, server according to this web-page requests, can send web data corresponding to destination network addresses to terminal.The treatment mechanism of the second auxiliary process can be identical with the first auxiliary process.If the second auxiliary process opens this webpage failure, then send webpage reopening message to host process, then self is closed, host process re-establishes auxiliary process, to continue to open above-mentioned webpage, circulation performs said process until open above-mentioned webpage, or circulation can be stopped to perform when reaching preset loop number of times.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
Embodiment three
Below in conjunction with concrete application scenarios, the method for the unlatching webpage that the embodiment of the present invention provides is described in detail, as shown in Figure 4, following treatment step can be comprised:
Step 401, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses.
Step 402, the first auxiliary process, according to destination network addresses, performs the operation of opening corresponding webpage.
Step 403, when reaching preset duration after receiving the first webpage open command, the current loading of the first auxiliary process detection to should the browser kernel function of webpage whether complete.
Step 404, if current loading to should the browser kernel function of webpage imperfect, then the first auxiliary process judges to open this webpage failure, sends webpage reopening message to host process.
Step 405, self closes by the first auxiliary process.
Step 406, when receiving the webpage reopening message that the first auxiliary process sends, host process, according to webpage reopening message, determines that the network address corresponding to the first auxiliary process is destination network addresses.
Step 407, host process sets up the second auxiliary process, and sends to the second auxiliary process the second webpage open command carrying destination network addresses.
Step 408, the second auxiliary process, according to destination network addresses, performs the operation of opening corresponding webpage.
The processing mode of above-mentioned steps 401 ~ step 408 see the related content of embodiment two, can not repeat them here.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
Embodiment four
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind ofly opens the host process set up in the device of webpage, and as shown in Figure 5, host process comprises:
Sending module 510, for sending to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process;
Determination module 520, for when receiving the webpage reopening message that the first auxiliary process sends, according to webpage reopening message, determines that the network address corresponding to the first auxiliary process is destination network addresses;
Set up module 530, for setting up the second auxiliary process, and sending to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, performing the operation of opening corresponding webpage.
Alternatively, determination module 520, for:
According to the corresponding relation of the auxiliary process prestored and the network address, determine to send the network address that the first auxiliary process of webpage reopening message is corresponding, the network address determined is destination network addresses.
Alternatively, sending module 510 also for:
Send process out code to the first auxiliary process, to make the first auxiliary process, self is closed.
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind ofly opens the first auxiliary process set up in the device of webpage, and as shown in Figure 6, the first auxiliary process comprises:
Receiver module 610, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to destination network addresses, performs the operation of opening corresponding webpage;
Sending module 620, if for opening this webpage failure, then send webpage reopening message to host process; To make host process according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, set up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses;
Closing module 630, for closing self.
Alternatively, sending module 620, for:
When reaching preset duration after receiving the first webpage open command, whether the browser kernel function detecting this webpage of correspondence of current loading is complete;
If the browser kernel function of this webpage of correspondence of current loading is imperfect, then judges to open this webpage failure, send webpage reopening message to host process.
Alternatively, sending module 620, for:
When obtaining the web data failure of this webpage, judging to open this webpage failure, sending webpage reopening message to host process.
Alternatively, closing module 630, for:
When receiving the process out code that described host process sends, self is closed.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
Embodiment five
Based on identical technical conceive, a kind of device opening webpage that the embodiment of the present invention also provides, sets up in this device and has host process and the first auxiliary process, wherein:
Host process, for sending to the first auxiliary process the first webpage open command carrying destination network addresses; When receiving the webpage reopening message that the first auxiliary process sends, according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses; Set up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage;
First auxiliary process, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to destination network addresses, performs the operation of opening corresponding webpage; If open this webpage failure, then send webpage reopening message to host process; Self is closed.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
It should be noted that: the device of the unlatching webpage that above-described embodiment provides is when opening webpage, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the device of the unlatching webpage that above-described embodiment provides belongs to same design with the embodiment of the method for opening webpage, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment six
Fig. 7 is the structural representation of the terminal that the embodiment of the present invention provides.See Fig. 7, this terminal may be used for the method implementing the unlatching webpage provided in above-described embodiment.Preferred:
Terminal 700 can comprise communication unit 110, includes the storer 120 of one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WIFI (WirelessFidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in figure, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
Communication unit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, this communication unit 110 can be RF (RadioFrequency, radio frequency) circuit, router, modulator-demodular unit, etc. network communication equipment.Especially, when communication unit 110 is RF circuit, after being received by the downlink information of base station, more than one or one processor 180 is transferred to process; In addition, base station is sent to by relating to up data.Usually, RF circuit as communication unit includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (LowNoiseAmplifier, low noise amplifier), diplexer etc.In addition, communication unit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (GlobalSystemofMobilecommunication, global system for mobile communications), GPRS (GeneralPacketRadioService, general packet radio service), CDMA (CodeDivisionMultipleAccess, CDMA), WCDMA (WidebandCodeDivisionMultipleAccess, Wideband Code Division Multiple Access (WCDMA)), LTE (LongTermEvolution, Long Term Evolution), Email, SMS (ShortMessagingService, Short Message Service) etc.Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 700.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Preferably, input block 130 can comprise touch-surface 131 and other input equipments 132.Touch-surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on touch-surface 131 or near touch-surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, touch-surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize touch-surface 131.Except touch-surface 131, input block 130 can also comprise other input equipments 132.Preferably, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 700 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (LiquidCrystalDisplay, liquid crystal display), OLED (OrganicLight-EmittingDiode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, touch-surface 131 can cover display panel 141, when touch-surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in the figure 7, touch-surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by touch-surface 131 and display panel 141 integrated and realize input and output function.
Terminal 700 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Optical sensor can comprise ambient light sensor and proximity transducer, wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, and proximity transducer when terminal 700 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 700 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 700.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 700.
In order to realize radio communication, this terminal can be configured with wireless communication unit 170, this wireless communication unit 170 can be WIFI module.WIFI belongs to short range wireless transmission technology, and terminal 700 can help user to send and receive e-mail by wireless communication unit 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although there is shown wireless communication unit 170, be understandable that, it does not belong to must forming of terminal 700, can omit in the scope not changing disclosed essence as required completely.
Processor 180 is control centers of terminal 700, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 700, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 700 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 700 can also comprise camera, bluetooth module etc., does not repeat them here.In the present embodiment, terminal also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and be configured to be performed by more than one or one processor, described more than one or one routine package is containing the instruction for carrying out following method:
Host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process;
When receiving the webpage reopening message that the first auxiliary process sends, host process, according to webpage reopening message, determines that the network address corresponding to the first auxiliary process is destination network addresses;
Host process sets up the second auxiliary process, and sends to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, performs the operation of opening corresponding webpage.
Alternatively, host process, according to webpage reopening message, is determined that the network address corresponding to the first auxiliary process is destination network addresses, being comprised:
Host process is according to the corresponding relation of the auxiliary process prestored and the network address, and determine to send the network address that the first auxiliary process of webpage reopening message is corresponding, the network address determined is destination network addresses.
Alternatively, after the webpage reopening message that the first auxiliary process that receives sends, the method also comprises:
Host process sends process out code to the first auxiliary process, self is closed to make the first auxiliary process.
Further, described more than one or one routine package is containing the instruction for carrying out following method:
First auxiliary process receives the first webpage open command carrying destination network addresses that host process sends, and according to destination network addresses, performs the operation of opening corresponding webpage;
If open this webpage failure, then the first auxiliary process sends webpage reopening message to host process; To make host process according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, set up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses;
Self closes by the first auxiliary process.
Alternatively, if open this webpage failure, then the first auxiliary process sends webpage reopening message to host process, comprising:
When reaching preset duration after receiving the first webpage open command, whether the browser kernel function of this webpage of correspondence of the current loading of the first auxiliary process detection is complete;
If the browser kernel function of this webpage of correspondence of current loading is imperfect, then the first auxiliary process judges to open this webpage failure, sends webpage reopening message to host process.
Alternatively, if open this webpage failure, then the first auxiliary process sends webpage reopening message to host process, comprising:
When obtaining the web data failure of this webpage, the first auxiliary process judges to open this webpage failure, sends webpage reopening message to host process.
Alternatively, self closes by the first auxiliary process, comprising:
When receiving the process out code that host process sends, self closes by the first auxiliary process.
In the embodiment of the present invention, host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make the first auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, if open this webpage failure, then send webpage reopening message to host process, when receiving the webpage reopening message that the first auxiliary process sends, host process is according to webpage reopening message, determine that the network address corresponding to the first auxiliary process is destination network addresses, host process sets up the second auxiliary process, and send to the second auxiliary process the second webpage open command carrying destination network addresses, to make the second auxiliary process according to destination network addresses, perform the operation of opening corresponding webpage, like this, when the first auxiliary process opens webpage failure, host process can set up the second auxiliary process automatically, this webpage is reopened by the second auxiliary process, simplify the operation that user opens webpage, thus, the efficiency of opening webpage can be improved.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (15)

1. open a method for webpage, it is characterized in that, described method comprises:
Host process sends to the first auxiliary process the first webpage open command carrying destination network addresses, to make described first auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage, if open the failure of described webpage, then send webpage reopening message to described host process;
When receiving the webpage reopening message that described first auxiliary process sends, described host process, according to described webpage reopening message, determines that the network address corresponding to described first auxiliary process is described destination network addresses;
Described host process sets up the second auxiliary process, and sends to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, performs the operation of opening corresponding webpage.
2. method according to claim 1, is characterized in that, described host process, according to described webpage reopening message, is determined that the network address corresponding to described first auxiliary process is described destination network addresses, being comprised:
Described host process is according to the corresponding relation of the auxiliary process prestored and the network address, and determine to send the network address that the described first auxiliary process of described webpage reopening message is corresponding, the network address determined is described destination network addresses.
3. method according to claim 1, is characterized in that, described in receive the webpage reopening message that described first auxiliary process sends after, described method also comprises:
Described host process sends process out code to described first auxiliary process, self is closed to make described first auxiliary process.
4. open a method for webpage, it is characterized in that, described method comprises:
First auxiliary process receives the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage;
If open the failure of described webpage, then described first auxiliary process sends webpage reopening message to described host process; To make described host process according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses, set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses;
Self closes by described first auxiliary process.
5. method according to claim 4, is characterized in that, opens the failure of described webpage if described, then described first auxiliary process sends webpage reopening message to described host process, comprising:
When reaching preset duration after receiving described first webpage open command, whether the browser kernel function of the described webpage of correspondence of the current loading of described first auxiliary process detection is complete;
If the browser kernel function of the described webpage of the correspondence of current loading is imperfect, then described first auxiliary process judges to open the failure of described webpage, sends webpage reopening message to described host process.
6. method according to claim 4, is characterized in that, opens the failure of described webpage if described, then described first auxiliary process sends webpage reopening message to described host process, comprising:
When obtaining the web data failure of described webpage, described first auxiliary process judges to open the failure of described webpage, sends webpage reopening message to described host process.
7. method according to claim 4, is characterized in that, self closes by described first auxiliary process, comprising:
When receiving the process out code that described host process sends, self closes by described first auxiliary process.
8. open the host process set up in the device of webpage, it is characterized in that, described host process comprises:
Sending module, for sending to the first auxiliary process the first webpage open command carrying destination network addresses, to make described first auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage, if open the failure of described webpage, then send webpage reopening message to described host process;
Determination module, for when receiving the webpage reopening message that described first auxiliary process sends, according to described webpage reopening message, determines that the network address corresponding to described first auxiliary process is described destination network addresses;
Set up module, for setting up the second auxiliary process, and sending to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, performing the operation of opening corresponding webpage.
9. host process according to claim 8, is characterized in that, described determination module, for:
According to the corresponding relation of the auxiliary process prestored and the network address, determine to send the network address that the described first auxiliary process of described webpage reopening message is corresponding, the network address determined is described destination network addresses.
10. host process according to claim 8, is characterized in that, described sending module also for:
Send process out code to described first auxiliary process, to make described first auxiliary process, self is closed.
Open the first auxiliary process set up in the device of webpage, it is characterized in that for 11. 1 kinds, described first auxiliary process comprises:
Receiver module, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage;
Sending module, if for opening the failure of described webpage, then send webpage reopening message to described host process; To make described host process according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses, set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses;
Closing module, for closing self.
12. first auxiliary processes according to claim 11, is characterized in that, described sending module, for:
When reaching preset duration after receiving described first webpage open command, whether the browser kernel function detecting the described webpage of correspondence of current loading is complete;
If the browser kernel function of the described webpage of the correspondence of current loading is imperfect, then judges to open the failure of described webpage, send webpage reopening message to described host process.
13. first auxiliary processes according to claim 11, is characterized in that, described sending module, for:
When obtaining the web data failure of described webpage, judging to open the failure of described webpage, sending webpage reopening message to described host process.
14. first auxiliary processes according to claim 11, is characterized in that, described closing module, for:
When receiving the process out code that described host process sends, self is closed.
15. 1 kinds of devices opening webpage, is characterized in that, setting up in described device has host process and the first auxiliary process, wherein:
Described host process, for sending to the first auxiliary process the first webpage open command carrying destination network addresses; When receiving the webpage reopening message that described first auxiliary process sends, according to described webpage reopening message, determine that the network address corresponding to described first auxiliary process is described destination network addresses; Set up the second auxiliary process, and send to described second auxiliary process the second webpage open command carrying described destination network addresses, to make described second auxiliary process according to described destination network addresses, perform the operation of opening corresponding webpage;
Described first auxiliary process, for receiving the first webpage open command carrying destination network addresses that host process sends, and according to described destination network addresses, performs the operation of opening corresponding webpage; If open the failure of described webpage, then send webpage reopening message to described host process; Self is closed.
CN201410304777.7A 2014-06-30 2014-06-30 The method and apparatus for opening webpage Active CN105302825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410304777.7A CN105302825B (en) 2014-06-30 2014-06-30 The method and apparatus for opening webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410304777.7A CN105302825B (en) 2014-06-30 2014-06-30 The method and apparatus for opening webpage

Publications (2)

Publication Number Publication Date
CN105302825A true CN105302825A (en) 2016-02-03
CN105302825B CN105302825B (en) 2019-09-13

Family

ID=55200100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410304777.7A Active CN105302825B (en) 2014-06-30 2014-06-30 The method and apparatus for opening webpage

Country Status (1)

Country Link
CN (1) CN105302825B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442400A (en) * 2019-08-15 2019-11-12 网易(杭州)网络有限公司 Browser control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115201A1 (en) * 2006-11-13 2008-05-15 Microsoft Corporation Refreshing a page validation token
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN102073559A (en) * 2011-01-12 2011-05-25 北京搜狗科技发展有限公司 Webpage input data protection method and system
CN202121615U (en) * 2011-06-16 2012-01-18 奥维通信股份有限公司 Embedded webpage server selfloop detection apparatus
CN102768630A (en) * 2012-06-29 2012-11-07 腾讯科技(深圳)有限公司 Method and device for detecting webpage running environment and storage medium
CN102945193A (en) * 2012-10-24 2013-02-27 广州市动景计算机科技有限公司 Recovery method of running data, and electronic device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115201A1 (en) * 2006-11-13 2008-05-15 Microsoft Corporation Refreshing a page validation token
CN101587456A (en) * 2009-07-08 2009-11-25 腾讯科技(深圳)有限公司 Protection processing method and apparatus of software operation
CN102073559A (en) * 2011-01-12 2011-05-25 北京搜狗科技发展有限公司 Webpage input data protection method and system
CN202121615U (en) * 2011-06-16 2012-01-18 奥维通信股份有限公司 Embedded webpage server selfloop detection apparatus
CN102768630A (en) * 2012-06-29 2012-11-07 腾讯科技(深圳)有限公司 Method and device for detecting webpage running environment and storage medium
CN102945193A (en) * 2012-10-24 2013-02-27 广州市动景计算机科技有限公司 Recovery method of running data, and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442400A (en) * 2019-08-15 2019-11-12 网易(杭州)网络有限公司 Browser control method and device
CN110442400B (en) * 2019-08-15 2023-04-18 网易(杭州)网络有限公司 Browser control method and device

Also Published As

Publication number Publication date
CN105302825B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN104142862B (en) The overload protection method of server and device
CN104135728B (en) Method for connecting network and device
CN105005909A (en) Method and device for predicting lost users
CN104639672A (en) Method and device for domain name resolution (DNS)
CN104518875A (en) Identity authentication method, account acquisition method and mobile terminal
CN105278937A (en) Method and device for displaying pop-up box messages
CN104580167A (en) Data transmission method, device and system
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN104065693A (en) Method, device and system for accessing network data in webpage applications
CN104519197A (en) User login method, user login device and terminal devices
CN105491135B (en) Establish the method and device of data connection
CN104301315A (en) Method and device for limiting information access
CN104902531A (en) Network connection method, application authentication server, terminal and router
CN104850406A (en) Page switching method and device
CN104717341A (en) Message prompting method and terminal
CN103177217B (en) A kind of file scanning method, system and client and server
CN104965722A (en) Method and apparatus for displaying information
CN105389259A (en) Method, apparatus and system for performing application testing
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN104699501A (en) Method and device for running application program
CN104660769A (en) Method, device and system for adding contact person information
CN104391629A (en) Method for sending message in orientation manner, method for displaying message, server and terminal
CN104901992A (en) Resource transfer method and device
CN104092657A (en) Information transmission method, device and system
CN104424434A (en) Data verification 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221125

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 2, 518000, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.