Abstract:
According to the present invention, a method for accessing a parent page while browsing web pages is provided, which comprises steps of: receiving by a server a request from a user to extract a web page; when extracting the web page, updating by the server an “UP” list according to a parent-children-relation markup pre-stored in a page link to the web page, and entering into the web page linked by the page link; when requesting by the user the parent page, obtaining by the server the current “UP” list for the user to extract the parent page.

Description:
BACKGROUND OF THE INVENTION 
       [0001]    1. Field of Invention 
         [0002]    The present invention relates to a method for accessing a parent page while browsing web pages, which can dynamically update a list of parent pages for a user browsing path by using a parent-children-relation markup pre-stored in a web page link, so as to easily and correctly return to the parent page. 
         [0003]    2. Description of Prior Art 
         [0004]    When a user browses a website, “forward”/“backward” are always used to return to previously accessed web pages, or “up” is used to return to its parent page. Moreover, the user may access one and the same page through different access paths, and thus in order to return to the correct parent page, the link for “up” in the currently accessed page must be dynamically determined. Therefore, there is a need for a method meeting the above requirements. Additionally, the present invention provides a general-purpose “up” operation capability for a browser so as to make the “up” operation of the browser meet the actual requirement of the user well. 
         [0005]    At present, the user may “forward” or “backward” to the previously accessed web pages according to URL (Unified Resource Locator) history access information stored in the browser. However, the browsing relationship for “up”, i.e., the relationship between a parent page and a children page, is determined by an HTML (Hypertext Markup Language) webpage designer, so the browser can not perform an “UP” browsing operation. The current “UP” operation of the browser is based on hierarchical analyses for the URL, which can not truly meet the user&#39;s actual requirements. 
         [0006]    Further, the “UP” links directing to the parent pages in some web pages on a certain website are static links. Thus, the relationship between the children page and the parent page are fixed. Therefore, it is impossible to return to different parent pages from one and the same page according to different browsing paths of the user. 
       SUMMARY OF THE INVENTION 
       [0007]    The present invention relates to a method for accessing a parent page while browsing web pages, which can dynamically update a list of parent pages for a user browsing path by using a parent-children-relation markup pre-stored in a web page link, so as to easily and correctly return to the parent page. Furthermore, according to the present invention, it is possible to return to different parent pages from one and the same page according to different browsing paths of the user. 
         [0008]    According to the present invention, a method for accessing a parent page while browsing web pages is provided, which comprises steps of: receiving by a server a request from a user to extract a web page; when extracting the web page, updating by the server an “UP” list according to a parent-children-relation markup pre-stored in a page link to the web page, and entering into the web page linked by the page link; when requesting by the user the parent page, obtaining by the server the current “UP” list for the user to extract the parent page. 
         [0009]    Preferably, the step of updating by the server the “UP” list according to a parent-children-relation markup pre-stored in a page link to the web page includes: when the parent-children-relation markup represents that a current page and a target page are respectively the parent page and the children page, adding the current page which is the parent page into the “UP” list; when the parent-children-relation markup represents that a current page and a target page are brother pages, maintaining the current “UP” list as it is; and when the parent-children-relation markup represents that a current page and a target page are respectively the children page and the parent page, directing to the last item in the current “UP” list which is to be the target page, and deleting the target page which is the parent page from the current “UP” list. 
         [0010]    Preferably, the step of obtaining by the server the current “UP” list for the user to extract the parent page includes: obtaining by the server the current “UP” list for the user, and extracting the parent page according to the last item in the current “UP” list which is to be the target page. 
         [0011]    Preferably, the step of requesting by the user the parent page includes: requesting by the user the parent page through pressing an “UP” button in the current page. 
         [0012]    Preferably, the UP list is used to store a list of parent pages for a current browsing path of the user. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0013]    The above objects, advantages and features of the present invention will be apparent from the following detailed description on the preferred embodiments taken conjunction with the drawings in which: 
           [0014]      FIG. 1  is a general flowchart for invoking and processing, by a server, web pages according to a user&#39;s request in the embodiment of the present invention; 
           [0015]      FIG. 2  is a detailed flowchart for processing, by the server, the web page while invoking the requested web page in the embodiment of the present invention; 
           [0016]      FIG. 3  is a flowchart for an “UP” operation procedure of a browser in the embodiment of the present invention; and 
           [0017]      FIG. 4  is an implementation example for illustrating the method of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
       [0018]    Now, preferred embodiments of the present invention will be described by referring to the drawings. 
         [0019]      FIG. 1  is a general flowchart for invoking and processing, by a server, web pages according to a user&#39;s request in the embodiment of the present invention. 
         [0020]    Generally, the web pages are stored in the server as files so that the user may request to access. As shown in  FIG. 1 , firstly, at step  101 , the user sends a web page request; after receiving the request, at step  103 , the server (a Web server) finds a corresponding web page in its memory according to the user&#39;s request parameters and invokes it in, and then at step  105 , the server processes the web page; and finally, at step  107 , the server returns the processed result to the user. 
         [0021]    In the present invention, when designing the web pages, the HTML designer will represent browsing relationship (parent-children-relation) among the pages with a corresponding parent-children-relation markup, and pre-store the parent-children-relation markup into a page link. 
         [0022]    In each hypertext link for the page, when a target page is its children page, then a markup of UPLIST(+) is added into the link, to indicate that when the page is generated, the current page will be necessarily added into an “UP” list (UPLIST); when the target page is its parent page, then markups of UP_TARGET and UPLIST(−) are added, to indicate that when the page is generated, the target page of the hyperlink is the last page in the “UP” list and the last element is deleted from the “UP” list; and when the target page is its brother page, then a markup of UPLIST(.) is added, to indicate that when the page is generated, only content of the “UP” list in the current HTTP parameters is necessarily put into the link, that is, the current UPLIST is maintained. 
         [0023]      FIG. 2  is a flowchart for processing, by the server, the web page in the embodiment of the present invention. As shown in  FIG. 2 , at step  201 , the server receives and analyzes the user&#39;s request to obtain the current “UP” list; at step  203 , the server invokes the requested web page according to the user&#39;s request; and then, at step  205 , the server updates the “UP” list according to the parent-children-relation markup pre-stored in the page link to the page. 
         [0024]    In particularly, when said parent-children-relation markup is UPLIST(+), i.e., when said parent-children-relation markup represents that the current page and the target page are respectively the parent page and the children page, at step  207 , the current page which is the parent page is added into the “UP” list. When said parent-children-relation markup is UPLIST(.), i.e., when said parent-children-relation markup represents that the current page and the target page are brother pages, at step  209 , the current “UP” list is maintain as it is. When said parent-children-relation markups are UPLIST(−) and UP_TARGET, i.e., when said parent-children-relation markups represent that the current page and the target page are respectively the children page and the parent page, at step  213 , the last item in the current “UP” list which is to be the target page is directed to (by UP_TARGET); and ate step  211 , the target page which is the parent page is deleted from the current “UP” list. 
         [0025]    Then, at step  215 , it is judged whether the process is completed or not. When it is determined that the process is completed (step  215 : YES), at step  217 , the processed page is returned. 
         [0026]    Thereafter, when the user requests the parent page through pressing, for example, an UP button, the server may obtain the current “UP” list for the user, and extract the parent page, i.e., the target parent page, according to the last item in the current “UP” list directed by the UP_TARGET. 
         [0027]    As described above, in the present invention, the “UP” list is used for storing the list of parent pages for the current browsing path of the user. That is to say, in the present invention, it is possible to return to different parent pages from one and the same page according to different browsing paths of the user. 
         [0028]    Additionally, according to the present invention, it is possible to dynamically update the list of parent pages for the user&#39;s browsing path by using the parent-children-relation markup pre-stored in the web page link. 
         [0029]      FIG. 3  is a flowchart for an “UP” operation procedure of a browser in the embodiment of the present invention. 
         [0030]    As shown in  FIG. 3 , at step  301 , the user clicks the “UP” button of the browser; at step  303 , the browser obtains the “UP” list from the current URL; and then, at step  305 , the browser analyzes the “UP” list to obtain the target page and the parameters thereof; and finally, at step  307 , the browser turns to a corresponding target service according to the obtained target page and information on the parameters thereof. 
         [0031]      FIG. 4  is an implementation example for illustrating the method of the present invention. As shown in  FIG. 4 , the user may arrive at the target page through two paths (a dotted line path and a solid line path). When locating at the target page, the user may click the UP link in the page or the UP button of the browser so as to return to the correct parent page. For the browsing path indicated in dotted line, it returns to PAGE 1, and for the browsing path in solid line, it returns to PAGE a. 
         [0032]    The configurations of the corresponding “UP” lists in the respective pages are as follows. 
       Configurations of the First Page: 
       [0033]    “Power On Devices” link
 
&lt;A href=“page1.html?UPLIST(+)”&gt;Power On Devices &lt;/A&gt;
 
“All Washers” link
 
&lt;A href=“pagea.html?UPLIST(+)”&gt;All Washers &lt;/A&gt;
 
       Configurations of PAGE 1: 
       [0034]    “Aricon 3” link
 
&lt;A href=“page2.html?UPLIST(+)”&gt;Aircons 3&lt;/A&gt;
 
       Configurations of PAGE 2: 
       [0035]    “Next” link
 
&lt;A href=“TargetPage.html?UPLIST(.)”&gt;Next &lt;/A&gt;
 
       Configurations of PAGE a: 
       [0036]    “Washer 1” link
 
&lt;A href=“pageb.html?UPLIST(+)”&gt;Washer 1&lt;/A&gt;
 
       Configurations of PAGE b: 
       [0037]    “Next” link:
 
&lt;A href=“TargetPage.html?UPLIST(.)”&gt;Next &lt;/A&gt;
 
       Configurations of the Target Page: 
       [0038]    “UP” link:
 
&lt;A href=“UP_TARGET.html?UPLIST(−)”&gt;UP&lt;/A&gt;
 
         [0039]    As configured above, according to the method of the present invention, after the web pages are processed by the server, the used URL address while requesting the target page is: 
         [0000]    for the browsing path indicated in dotted line:
 
Http://ServerAddr/TargetPage.html?uplist=(fristPage;page1)
 
for the browsing path indicated in solid line:
 
Http://ServerAddr/TargetPage.html?uplist=(fristPage;pagea)
 
         [0040]    Thus, when the user clicks the “UP” link in the target page or clicks the “UP” button of the browser, the corresponding parent page thereof (PAGE 1 or PAGE a) may be obtained from the “UP” list parameter of the current URL, thereby returning to the correct parent page. 
         [0041]    Although the present invention is illustrated with reference to the preferred embodiments thereof, it can be understood by those skilled in the art that various changes, substitutions and alters to the present invention are possible without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the above embodiments but only limited by the following claims and the equivalents thereof.