Browse Prior Art Database

A Method for Rendering Only a Portion of a HTML Page at a Time

IP.com Disclosure Number: IPCOM000237386D
Publication Date: 2014-Jun-16
Document File: 4 page(s) / 140K

Publishing Venue

The IP.com Prior Art Database

Related People

Jon Herron: INVENTOR [+3]

Abstract

A method for splitting an original HTML page into multiple HTML pages and rendering only a subset of the multiple HTML pages at a time is disclosed. An underlying HTML code of the HTML page is extracted and converted into an input string. The input string is then parsed to identify a structure of the HTML page. The identified structure includes tags contained in the HTML code. The HTML page is split into multiple pages while the input string is parsed, based on the identified structure and a pre-determined page length. A user is facilitated to choose a subset of the multiple pages for rendering on a user device.

This text was extracted from a Microsoft Word document.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 37% of the total text.

A Method for Rendering Only a Portion of a HTML Page at a Time 

Abstract

A method for splitting an original HTML page into multiple HTML pages and rendering only a subset of the multiple HTML pages at a time is disclosed.  An underlying HTML code of the HTML page is extracted and converted into an input string.  The input string is then parsed to identify a structure of the HTML page.  The identified structure includes tags contained in the HTML code.   The HTML page is split into multiple pages while the input string is parsed, based on the identified structure and a pre-determined page length.  A user is facilitated to choose a subset of the multiple pages for rendering on a user device.

Description

Disclosed is a method for splitting an original HTML page into multiple HTML pages, and rendering only a subset of the multiple HTML pages at a single time.  A number of HTML pages in the subset to be displayed, can be pre-determined by a device used in presenting the multiple HTML pages to a user.  A calling application such as, but not limited to, a web rendering application, can also pre-determine the number of pages to be displayed. 

An exemplary scenario, wherein an original HTML page is split into multiple pages, with only one page being rendered at a single time is shown in Figure 1.

Figure 1

In an embodiment, the method parses a HTML code underlying an original HTML page, and split the original HTML page based on a structure of the HTML code. 

Consider an exemplary implementation as shown in Figure 2.

Figure 2

To start with, an HTML code is converted into an input string.  Thereafter, length of the HTML code (i.e. document) is compared with a desired page size.  In an instance, the desired page size may be configured by the calling application.  In scenarios where the document length does not exceed the desired page size the method ends. 

However, if the document length exceeds the desired page size, the method proceeds on to the next steps.  Moving on, a token collection stack is initialized for storing tokens, as and when they are identified in the input string.  Similarly, a page collection structure is also initialized, for storing all pages as and when they are created. 

Subsequently, each character in the input string is analyzed to identify one or more of, a start tag, data between the start tag and its corresponding end tag, and an end tag.  If the start tag corresponds to the start of an HTML tag, the method initializes a document header.  All tags and text encountered subsequently in the input string are added into document header.  Once, a start of a body tag is detected, building of the document header is finished. 

Subsequent to building the document header, the method populates the token collection stack.  If the method identifies the start of a tag, the method creates and stores a token corresponding to the tag, in the token collection stack.  The token structure includes information such as, tag na...