This application is related to and claims the benefit of Japan Patent Application No. 2014-136926, filed Jul. 2, 2014, which application is incorporated by reference herein for all purposes.
The present invention relates to displaying Web pages.
Some Web pages contain dynamic content as a component. The dynamic content is Web content generated dynamically by a Web server in response to, for example, a request from a client. The dynamic content may have its display contents changed each time a Web page containing the dynamic content is displayed by a Web browser. Its display contents may also be changed while a Web page is displayed in response to a request from a client, with the passage of time, or the like.
In some embodiments, the present invention is implemented as an apparatus for displaying Web pages on a display device, which includes: a dynamic content distinguishing unit adapted to distinguish whether or not a Web page displayed on the display device contains dynamic content; a content information extraction unit adapted to extract identification information which identifies contents of the displayed dynamic content from the Web page determined by the dynamic content distinguishing unit as containing dynamic content; a content information holding unit adapted to hold the identification information extracted by the content information extraction unit; and a display control unit adapted to control display of Web pages on the display device, and, if dynamic content is contained in a Web page to be newly displayed and the identification information about the dynamic content is held in the content information holding unit, display the dynamic content of the newly displayed Web page based on the identification information held in the content information holding unit.
In some embodiments, if there are a plurality of pieces of the identification information about the dynamic content contained in the newly displayed Web page, the display control unit accepts selection of contents of the dynamic content by a user, and displays the dynamic content based on the identification information about the selected contents of the dynamic content.
Further, in some embodiments, when a Web page displayed on the display device prior to a currently displayed Web page is to be redisplayed as the Web page to be newly displayed, the display control unit displays dynamic content contained in the Web page, based on the identification information held in the content information holding unit.
Also, in some embodiments, if a currently displayed Web page is to be reloaded and redisplayed as the Web page to be newly displayed, the display control unit displays dynamic content contained in the Web page, based on the identification information held in the content information holding unit.
Also, more specifically, in some embodiments, the content information extraction unit extracts the identification information about dynamic content when a Web page containing the dynamic content is displayed on the display device, when the dynamic content contained in the Web page displayed on the display device is updated, when displaying a Web page containing the dynamic content is finished, or at each predetermined time.
In some embodiments, the present invention is also implemented as a method for displaying Web pages on a display device, which includes the steps of: checking, in relation to dynamic content contained in a Web page to be newly displayed on the display device, whether or not identification information which identifies contents of the dynamic content at a specific time point is held, if the Web page is the same Web page as a currently displayed Web page or is a Web page displayed previously; and displaying the dynamic content of the newly displayed Web page based on the identification information about the dynamic content contained in the newly displayed Web page if the identification information is held. In some embodiments, the method further includes a step of extracting the identification information which identifies contents of the displayed dynamic content from the Web page displayed on the display device and holding the identification information.
Furthermore, in some embodiments the present invention is implemented as a program configured to implement functions of the apparatus described above by controlling a computer or as a program configured to cause a computer to perform processes corresponding to the steps described above. The program can be provided by being distributed on a magnetic disk, optical disk, semiconductor memory, or other recording medium or by being distributed via a network.
In some embodiments, the present invention is also implemented as another method. As part of the method, a uniform resource locator (URL) for a first Web page is obtained. By using the URL to retrieve the first Web page, a first version of the first Web page is provided. As provided, the first version of the first Web page includes visual static content and a first content version of a plurality of content versions of visual dynamic content. The visual static content is configured to remain the same each time the first Web page is displayed and the visual dynamic content is configured to change between the plurality of content versions each time the first Web page is displayed. A determination is made that there is visual dynamic content contained in the first Web page. In response to the determination identification information for the first content version of the visual dynamic content is extracted. After the extracting the identification information, a switch is made from providing the first version of the first webpage to providing a second webpage. Then, after this switching, the first version of the first Web page is reprovided by using the URL to retrieve the static content of the first Web page and by using the identification information to retrieve the first content version of the dynamic content.
In some embodiments, the present invention may make it easy to view a Web page containing desired contents of dynamic content displayed previously.
a) and 5(b) are diagrams showing an example of an HTML file of a Web page likely to contain dynamic content, where
a) and 6(b) are diagrams showing another example of an HTML file of a Web page likely to contain dynamic content, where
a) and 7(b) are diagrams showing another example of an HTML file of a Web page likely to contain dynamic content, where
a) and 8(b) are diagrams showing special description examples in an HTML file of a Web page, where
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
After transition from a Web page containing dynamic content to another Web page, if one goes back to the Web page containing the dynamic content, the dynamic content may have changed from what it was before the transition to the other Web page. Consequently, it may not be possible to view the dynamic content as it was displayed before the transition to the other Web page.
Also, if contents of dynamic content change while a Web page is being displayed, it may be difficult to go back to the desired contents of the dynamic content existing before the change.
Some embodiments of the present invention may allow information about a Web page containing dynamic content to be saved together with contents of the dynamic content and thereby make it easier to view the Web page in a form containing desired contents of the dynamic content.
The content storage unit 110 may store an HTML file of a Web page, content such as images displayed on the Web page, programs for generating dynamic content (e.g., servlets and Java Server Pages), and the like. The HTML file stored in the content storage unit 110 may include static content prepared as a component of the Web page beforehand and dynamic content generated dynamically. In some embodiments, the static content may not change in its display contents according to conditions such as requests from the client terminal 200 and the passage of time. On the other hand, the dynamic content may change in its display contents according to conditions such as requests from the client terminal 200 and the passage of time.
The Web page generating unit 120 may generate a Web page in response to a request from the client terminal 200. If the generated Web page is to be made up solely of static content, the Web page may be generated from static content read out of the content storage unit 110. Also, if an entire Web page requested is stored as content in the content storage unit 110, the appropriate Web page may be read out of the content storage unit 110.
On the other hand, if a Web page generated in response to a request from the client terminal 200 contains dynamic content, the Web page generating unit 120 may generate the Web page by generating and incorporating necessary dynamic content. Here, some dynamic content, such as search results of a search engine, may be newly generated in response to a request from the client terminal 200. Also, as with advertisements displayed on a Web page, there may be instances in which content (such as an image) may itself be static, but different content is selected and displayed dynamically when a Web page is displayed or as time passes. In such instances, the static content to be selected may be selected from content stored, for example, in the content storage unit 110. Also, content, such as moving images, which in itself is dynamic may also be included in dynamic content.
In some embodiments, dynamic content can be incorporated in a Web page by various methods. For example, dynamic content can be described in the HTML file of the Web page using a script such as JavaScript®. Also, dynamic content can be set by reading other content into a region generated using a FRAME tag or IFRAME tag of the HTML. Various other techniques which can incorporate dynamic content into a Web page may also be used.
The request acceptance unit 130 may accept a request from the client terminal 200 via the network 300, and then send the accepted request to the Web page generating unit 120.
The transmission unit 140 may send back, via the network 300, the Web page generated by the Web page generating unit 120 to the client terminal 200 that sent the request accepted by the request acceptance unit 130.
The display unit 210, which is a display device such as a liquid crystal display, may display the Web page acquired from the Web server 100 on a display screen.
The display control unit 220, which may be implemented by a Web browser, may display the Web page acquired from the Web server 100 on the display unit 210. Also, as a function of the Web browser, the display control unit 220 may hold information such as history information and cookies of a displayed Web page. Also, the display control unit 220 according to some embodiments may determine whether or not dynamic content is contained in a Web page to be displayed. That is, the display control unit 220 may function as a dynamic content distinguishing unit.
In some embodiments, the determination as to whether or not dynamic content is contained in a Web page may be made by an appropriate technique according to the type of method used to incorporate the dynamic content into the Web page. Regarding the method used to incorporate the dynamic content into the Web page, various other techniques may be available. Thus, according to some embodiments, if a description which enables incorporating dynamic content exists in a source file (HTML file) of a Web page, it may be determined that dynamic content is contained in the Web page. Specifically, for example, if a script such as JavaScript® exists in the HTML file of a Web page, it may be determined that dynamic content is contained in the Web page. Also, if a FRAME tag or IFRAME tag is used in the HTML file of a Web page, it may be determined that dynamic content is contained in the Web page. Also, in some embodiments, a dictionary may be created in advance by registering characters expected to be used for URLs (Uniform Resource Locators) of static content. By conducting morphological analysis of the URL of Web content contained in a Web page, the URL may be checked for any character not registered in the dictionary. If the URL contains any character not registered in the dictionary, it may be determined that dynamic content is contained in the Web page. Note that the URL containing a character not registered in the dictionary may be assumed to be, for example, a URL generated automatically by a program.
In some embodiments, the input acceptance unit 230 may accept an input operation performed by a user based on a Web page displayed on the display unit 210. Specifically, the input acceptance unit 230 may accept text input, input of a command to transition to a link target, input of a command to call a function of a Web browser displaying a Web page, and the like. The command to call a function of a Web browser can be entered by selecting an appropriate one of various items, for example, from menus provided in a Web browser window displayed on the display unit 210. This may include a Web page transition based on a display history (“Back”), based on a display refresh as a result of reloading the Web page (“Reload”), or based on a registration in “Favorites” (Bookmark). The input acceptance unit 230 may be implemented by an existing input device, examples of which may include a pointing device such as a mouse, a keyboard, and a touch panel overlaid on a display screen of the display unit 210.
In some embodiments, based on the command and data accepted by the input acceptance unit 230, the data processing unit 240 may cause the display control unit 220 to control Web page display or to generate a request to be transmitted to the Web server 100. Also, when it is determined by the display control unit 220 that dynamic content is contained in the Web page to be displayed, the data processing unit 240 according to some embodiments may extract information on the target dynamic content from source code of the Web page. That is, the data processing unit 240 may function as a content information extraction unit adapted to extract information on dynamic content from the source code of the Web page. The process of extracting information on dynamic content performed by the data processing unit 240 is described herein.
In some embodiments, the content information holding unit 250 may hold information on the Web page being displayed on the display unit 210 by the display control unit 220 and information on the dynamic content extracted by the data processing unit 240. The information on the Web page held by the content information holding unit 250 may include, for example, the HTML file and URL of the Web page. Also, the information on the dynamic content held by the content information holding unit 250 may include, for example, data on the content itself (images and the like) and information identifying the content (link information and the like). Details of information about dynamic content are described herein.
In some embodiments, the request transmission unit 260 may transmit, via the network 300, the request generated by the data processing unit 240 to the Web server 100 specified as a destination of the request.
In some embodiments, the receiving unit 270 may receive the Web page transmitted from the Web server 100 via the network 300, and then send the received Web page to the display control unit 220.
As shown in
Also, while the Web page is displayed on the display unit 210, the display control unit 220 may determine whether or not conditions (e.g., execution conditions) for acquiring information on dynamic content are satisfied (steps 402 to 406). In the example shown in
Note that in some embodiments information on dynamic content is acquired each time contents of dynamic content change. Thus, the concrete example shown in
When any of the execution conditions above is satisfied (e.g., when determination in any of the steps is Yes), the display control unit 220 may determine whether or not the Web page being displayed may be likely to contain dynamic content (step 407). Here, the determination as to whether or not dynamic content is contained in a Web page may be made by checking for a description which enables incorporating dynamic content in the Web page, as described herein. Additional examples are also described herein. Note that the techniques described herein are only exemplary, and the method for determining whether or not dynamic content is contained is not limited to the described techniques.
a) and 5(b) (collectively, “FIG. 5”) are diagrams showing an example of an HTML file of a Web page likely to contain dynamic content, where
a) and 6(b) (collectively, “FIG. 6”) are diagrams showing another example of an HTML file of a Web page likely to contain dynamic content, where
a) and 7(b) (collectively, “FIG. 7”) are diagrams showing another example of an HTML file of a Web page likely to contain dynamic content, where
Also, in some embodiments, when morphological analysis of the URL (e.g., URL of content) described in the HTML file of a Web page is conducted, if the URL contains any character not registered in a dictionary created in advance by assuming character strings contained in typical URLs, the content specified by the URL may be likely to be dynamic content.
a) and 8(b) (collectively, “FIG. 8”) are diagrams showing special description examples in an HTML file of a Web page, in accordance with some embodiments of the present invention. Let us consider a case in which an HTML file contains a description such as the one shown in
Let us consider a case in which an HTML file contains a description such as the one shown in
Returning now to
Note that, in some embodiments, since multiple execution conditions for acquiring information about dynamic content are set as shown in steps 402 to 406, multiple pieces of information may be held for one piece of dynamic content on a currently displayed Web page depending on the execution conditions. Also, in some embodiments, when there are multiple pieces of dynamic content on one Web page, information may be held for each piece of dynamic content according to the execution conditions.
On the other hand, if it is determined by the display control unit 220 that the Web page is not likely to contain dynamic content (e.g., that the entire Web page is static content), the data processing unit 240 may extract only the URL of the Web page from the HTML file of the Web page and cause the content information holding unit 250 to hold the URL (step 409).
In some situations, when a “Back” command of a Web browser is entered, a Web page displayed before the currently displayed Web page is redisplayed by a function of the Web browser based on saved history information. According to the some embodiments, the Web page may be redisplayed based on the information held by the content information holding unit 250 in steps 408 and 409 of
If there is no dynamic content information to be read out (No in step 904), dynamic content may not exist in the Web page at the transition destination. Thus, the display control unit 220 may display the Web page corresponding to the HTML file acquired in step 902 on the display unit 210 (step 910).
Also, if there is one piece of dynamic content information to be read out (Yes in step 904 and No in step 905), the display control unit 220 may acquire dynamic content (step 906) based on the dynamic content information read out of the content information holding unit 250 in step 903. Then, the display control unit 220 may incorporate the dynamic content acquired in step 906 into the Web page corresponding to the HTML file acquired in step 902 and display the Web page on the display unit 210 (step 910). Here, if the information about dynamic content is data on content itself such as an image, the content read out of the content information holding unit 250 may be incorporated as it is into the Web page. On the other hand, if the information about dynamic content is link information about content, the content may be acquired based on the link information and the acquired content may then be incorporated into the Web page. Also, the content to be incorporated into the Web page may be acquired according to the form of dynamic content information read out.
On the other hand, if there are plural pieces of dynamic content information to be read out (Yes in step 904 and Yes in step 905), the display control unit 220 may acquire the plural pieces of dynamic content (step 907) based on the plural pieces of dynamic content information read out of the content information holding unit 250 in step 903. Then, one piece of the acquired dynamic content may be incorporated into the Web page corresponding to the HTML file acquired in step 902 and then displayed on the display unit 210 (step 908). In so doing, the dynamic content incorporated into the Web page may be any of the acquired pieces of dynamic content, and, for example, may be the piece of dynamic content displayed last.
Also, on the display unit 210, the display control unit 220 may display a selection screen used to select contents of dynamic content to be displayed on the Web page (step 908). Based on the selection screen presented on the display unit 210, the user can select a Web page containing dynamic content in a desired state via the input acceptance unit 230. When the user selects a Web page (e.g., Page N) containing the desired dynamic content, the data processing unit 240 may accept the selection (step 909). Then, the display control unit 220 may display the Web page incorporating the selected dynamic content on the display unit 210 (step 910).
Note that although in the example shown in
The selection screen 211, according to some embodiments, may hold multiple pieces of dynamic content information for one piece of dynamic content, and when multiple Web pages containing dynamic content can be constructed according to the contents of dynamic content, it may be sufficient if a Web page containing desired dynamic content can be selected. As such, the present invention may not be limited to the configuration shown in
Incidentally, in the operation example described above, when there is one piece of dynamic content information to be read out, dynamic content may be acquired, in some embodiments, simply based on the dynamic content information read out of the content information holding unit 250 (see steps 905 and 906 of
Also, although the operation of redisplaying a previously displayed Web page in response to a “Back” command of the Web browser has been described in the above operation example, a similar process may be applied to dynamic content also when a currently displayed Web page is reloaded and redisplayed in response to a “Reload” command of the Web browser. That is, in some embodiments, dynamic content displayed previously can be displayed in redisplaying a Web page when contents of the dynamic content on the currently displayed Web page have been changed.
For example, the following process is usable in some embodiments. First, when a “Reload” command of the Web browser is entered, the HTML file of the currently displayed Web page is reacquired from the Web server 100 by a function of the Web browser. Then, regarding the dynamic content contained in the currently displayed Web page, the display control unit 220 reads information about the dynamic content out of the content information holding unit 250 in a manner similar to step 903 of
On the other hand, if there is dynamic content information to be read out, the display control unit 220 may display the Web page reacquired in response to the “Reload” command on the display unit 210 and display a selection screen used to select contents of dynamic content to be displayed on the Web page on the display unit 210 in a manner similar to step 908 of
In the configuration example shown in
Note that
In
In some embodiments, a program may cause a computer for displaying Web pages on a display to function as (i) means for distinguishing whether or not a Web page displayed on the display device contains dynamic content; (ii) means for extracting identification information which identifies contents of displayed dynamic content from the Web page, in response to the Web page being determined by the dynamic content distinguishing means to contain the dynamic content and make a storage device hold the identification information; and (iii) means for controlling display of Web pages on the display device, and, if dynamic content is contained in a Web page to be newly displayed and the identification information about the dynamic content is held in the storage device, display the dynamic content of the newly displayed Web page based on the identification information held in the storage device.
Number | Date | Country | Kind |
---|---|---|---|
2014-136926 | Jul 2014 | JP | national |