# Patent

## Title
Dynamic content delivery to static page in non-application capable environment

## Abstract

A system to provide dynamic content to a static page includes a database to store the dynamic content to be incorporated into the static page. A non-application capable server is provided to store the static page. The non-application capable server has no database connectivity and no ability to execute applications. A dynamic page is adapted to make a connection to the database and execute an application code. An application capable server is provided to store the dynamic page, to parse the application code and to connect to the database. The static page incorporates the dynamic page to provide the dynamic content to the static page.

## Background
RELATED APPLICATIONS
This is a continuation application of U.S. application Ser. No. 09/728,808 filed Dec. 1, 2000, now U.S. Pat No. 7,139,814.


BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to Internet Web pages, and more specifically, to a system and method of providing dynamic content to a static page stored on a non-application capable server.
2. Discussion of the Related Art
Internet Web pages have become very sophisticated, incorporating not only “static” content, such as text and pictures, but “dynamic” content as well, such as scripts or programs that provide rich, dynamic content from a database. By utilizing dynamic content, Web pages may be personalized, for example, by welcoming the user to the Web site, or providing information and links customized by the user. Scripts are typically a list of operations or commands that may be executed without user interaction. Some examples of scripting languages include Visual Basic Scripting Edition (VBScript), JavaScript, and Perl.
As Internet Web sites take more dominant roles in business, the ability for a Web site to feature dynamic content is important in conveying information to a user, and/or attracting users to the Web site. Therefore, many businesses have a large Web content base, having both static content and dynamic/application content. Static content need not reside on an application-capable (script-enabled) server, while dynamic content needs to reside on an application-capable server. A non-application capable server is one that is not server-side scripting enabled, and does not have database connectivity. Accordingly, a non-application capable server does not perform any parsing of Web pages, and only serves up static pages. On the other hand, an application-capable server is adapted to interpret server-side scripting, and has database connectivity. Application-capable servers parse dynamic pages, compile server-side scripting, and insert database elements before delivering the dynamic content to a user's Internet browser.
In order to provide database-driven, personalized, and “application-like” features into a static environment, the static content is typically stored with the dynamic content on an application-capable server. However, it is preferable that static content be kept separate from the dynamic content for several reasons. When static content and dynamic content are stored separately, content authors can publish revisions to the static content (such as “journalistic-type” content, like text and still images) stored on the non-application capable servers through a document management/processing program without the fear of a wayward script being introduced into and bringing down the entire server infrastructure. Additionally, by revising only the static content stored on the non-application capable server, the approval process for making such revisions is generally easier to obtain or not necessary at all, as would be required for revising scripts or applications that are stored on application-capable servers.
Moreover, application-capable servers are much less scalable than non-application-capable servers. Therefore, performance is greater if static content is kept separate from the dynamic content. But, static content and dynamic content may be stored separately only by utilizing a third-party software package residing in the server infrastructure acting as an intermediary between the database and the content, such as BroadVision Enterprise (from BroadVision, Inc., Redwood City, Calif.). However, introducing additional software components such as an intermediary software package to the server infrastructure creates greater complexity and greater opportunity for instability in the server network.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates a system to provide dynamic content to a static page according to an embodiment of the present invention; and
FIG. 2 illustrates a flow chart diagram of the operation of a system to provide dynamic content to a static page according to an embodiment of the present invention.



DETAILED DESCRIPTION
FIG. 1 illustrates a system to provide dynamic content to a static page according to an embodiment of the present invention. A non-application capable server 110 is provided to serve a stored static page 140 and static content for a static page 180. The non-application capable server 110 storing the static page 140 and static content is not server-side scripting enabled and has no connections to a database 130. The database 130 is a repository of heterogeneous data elements, such as user profile data, content snippets, etc., which is to be integrated into the static page 180. The non-application capable server 110 performs no parsing of the static page 180, and only serves up static pages 180, such as HyperText Markup Language (HTML) Web pages. As mentioned above, the stored static page 140 and static content typically includes journalistic-type content, such as text and still images. The non-application capable server 110 does not store any scripts or applications, such as VBScript, JavaScript, Perl, etc.
An application-capable server 120 is provided to serve a stored dynamic page 150 and dynamic content from the database 130 for a dynamic page 182. The dynamic page 182 is adapted to make connections to the database 130 and execute application codes. That is, the dynamic page 182 includes server-side scripting elements and database connectivity. The dynamic page 182, for example, may be an Active Server Page (ASP). Utilizing ASP, applications may be executed in a server in a similar fashion to Common Gateway Interface (CGI) scripts. ASP uses the Microsoft Active X scripting engine to support, usually, VBScript or JavaScript code. Therefore, when a browser requests an ASP page, the Web server generates a page with HTML code and sends it back to the browser.
Accordingly, the application-capable server 120 has database connectivity, and is capable of interpreting server-side scripting. The application-capable server 120 is adapted to parse dynamic pages 182, compile server-side scripting, and insert database elements stored in the database 130 before delivering the dynamic page 182 to a user's browser 170, such as Netscape Navigator or Microsoft Internet Explorer. Therefore, along with the application-capable server 120, the dynamic page 182 is adapted to assemble elements retrieved from the database 130 prior to presenting it to the browser 170.
The browser 170 has a connection, preferably via a network, such as a local area network (LAN) or the Internet, to both the application-capable server 120 and the non-application capable server 110. More specifically, the static page 180 preferably has a first connection 190 to the non-application capable server 110 to receive static content for the static page 180, while the dynamic page 182 has a second connection 192 to the application-capable server 120 to receive dynamic content and elements from the database 130 for the dynamic page 182.
FIG. 2 illustrates a flow chart diagram of the operation of a system to provide dynamic content to a static page according to an embodiment of the present invention. A stored static page 140 and static content, including, for example, HTML code for a static page 180, is provided 200 from the non-application capable server 110 to a user's browser 170. As mentioned above, the static page 180 is preferably a journalistic-type HTML Web page having no server-side dynamic elements, such as server-side scripting or database connectivity. However, the static page 180 may contain client-side scripting, such as JavaScript.
A JavaScript reference, for example, may be made in the static page 180 similar to the following code:















<SCRIPT LANGUAGE=”JavaScript” src=http://dynamic-









server/myFunction.asp></SCRIPT>










This JavaScript reference may be made in the static page 180 to include modular code fragments (including the dynamic page 182) into the client-side script in the static page 180. In this case, the modular code fragment resides on the application-capable server 120. In the example illustrated by the above code, the static page 180 calls the “myFunction.asp” dynamic page 182 (an Active Server Page). The “myFunction.asp” dynamic page 182 executes 210 the application (scripting) code within the dynamic page 182 and queries the database 130 requesting the appropriate database elements based on a cookie placed in that external domain (i.e., external to the non-application capable server 110). The cookie may be used to identify users and potentially prepare customized Web pages for them. In this manner, cookies are set in the individual application's own domain (i.e., at the application-capable server 120 and not at the non-application capable server 110), and still be “accessed” by the static page 180. In reality, the application is accessing the cookie in its own domain (application-capable server 120), and pushing the results to the static page 180. By having the cookies reside at the application's own domain, bloated cookies that may reside at the master domain (i.e., the non-application capable server 110) are prevented. The “myFunction.asp” dynamic page 182 incorporates the results of the database query into a JavaScript function and writes the results to an output stream.
The above JavaScript reference may be part of a static page 180 pseudocode for welcoming a particular user to a Web site as follows:















<HEAD>



<SCRIPT LANGUAGE=”JavaScript” src=http://dynamic-









server/myFunction.asp></SCRIPT>









</HEAD>



<BODY>



Hello <javascript:document.write(FIRST);>



</BODY>










The following pseudocode may be part of a dynamic page 182 called by the above static page 180 pseudocode to retrieve dynamic content, i.e., the name of the particular user visiting the Web site, from the database 130 utilizing Structured Query Language (SQL):












SQL = “SELECT FIRST_NAME, LAST_NAME FROM PEOPLE”


Run SQL


Change Content Type To “application/x-javascript”


Output “function my_Javascript_Function( ){









FIRST = database_info(“FIRST_NAME”);



LAST = database_info(“LAST_NAME”);}










The application-capable server 120 is adapted to parse 220 the application code from the dynamic page 182 and connect 230 to the database 130 to retrieve 240 the appropriate dynamic content and elements stored in the database 130. In the example above, the name of the user visiting the static page 180 is retrieved from the database 130. Utilizing the above sample code, the dynamic page 182 preferably changes its Multipurpose Internet Mail Extensions (MIME) content type to “application/x-javascript” so that the static page 180 calling the dynamic page 182 may treat it as if it were static content residing on the non-application capable 110 server.
Therefore, when the static page 180 calls the “myFunction.asp” dynamic page 182, the dynamic content provided to the dynamic page 182 is incorporated 260 into the static page 180 as if it was entirely part of the static page 180 itself and from the non-application capable server 110. In the example above, the user is greeted with a personalized “Hello Username” upon visiting the Web site. In this manner, dynamic, database-driven content from external domains may be passed into, and included with, a static page 180 from a non-application capable server 110. Therefore, utilizing the system and method according to an embodiment of the present invention, additional third-party software packages are not required to store static content and dynamic content on separate servers. Static content and dynamic content do not need to be stored in the same server. As more and more content authors wish to provide a rich, personalized experience to end users, by utilizing the present invention, access to dynamic content is available to the content authors without changing their publishing methodology (i.e., going away from a non-application capable server), or having to write their own applications to access dynamic content.
While the description above refers to particular embodiments of the present invention, it will be understood that many modifications may be made without departing from the spirit thereof. The accompanying claims are intended to cover such modifications as would fall within the true scope and spirit of the present invention. The presently disclosed embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims, rather than the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

## Claims

1. A system to provide dynamic content to a static page, comprising:
a database to store the dynamic content to be incorporated into the static page;
a non-application capable server to store the static page, wherein the non-application capable server is isolated from the database;
a dynamic page operable to make a connection to the database, to execute an application code within the dynamic page, to query the database, to request database elements based on a cookie in a domain external to the non-application capable server, and to incorporate a result of the database query into a Javascript function; and
an application capable server to store the dynamic page, to parse the application code from the dynamic page, and to connect to the database, the static page incorporating the dynamic page to provide the dynamic content to the static page, wherein
the static page includes a JavaScript reference to the Javascript function residing on the application capable server,
the cookie is stored on the application capable server, which extracts information from the cookie and transmits the information to the static page,
the static page is a HyperText Markup Language (HTML) page and has a first connection to the non-application capable server, and
the dynamic page is an Active Server Page (ASP) and has a second connection to the application capable server.

2. The system according to claim 1, further including a browser to display the static page having the dynamic content.

3. The system according to claim 1, wherein the non-application capable server and the application capable server are connected to a network.

4. The system according to claim 1, wherein the application code is written in at least one of Visual Basic Scripting Edition (VBScript) code, JavaScript code or Perl code.

5. A method of providing dynamic content to a static page, the method comprising:
storing the dynamic content to be incorporated into the static page into a database;
storing the static page in a non-application capable server, wherein the non-application capable server is isolated from the database;
storing a dynamic page in an application capable server, wherein the application capable server is operable to parse an application code from the dynamic page and to connect to the database;
incorporating into the static page a JavaScript reference to a JavaScript function residing on the application capable server;
executing the application code within the dynamic page;
parsing the application code;
making a connection by the application capable server to the database;
providing the dynamic content from the database to the dynamic page, wherein the dynamic page is configured to query the database, to request a database element based on a cookie stored on the application capable server, and to incorporate a result of the database query into the JavaScript function; and
incorporating the dynamic page into the static page to provide the dynamic content to the static page, wherein
the application capable server extracts information from the cookie and transmits the information to the static page,
the static page is a HyperText Markup Language (HTML) page and has a first connection to the non-application capable server, and
the dynamic page is an Active Server Page (ASP) and has a second connection to the application capable server.

6. The method according to claim 5, wherein the non-application capable server and the application capable server are connected to a network.

7. The method according to claim 5, wherein the application code is written in at least one of Visual Basic Scripting Edition (VBScript) code, JavaScript code or Perl code.

8. The method according to claim 5, further including a browser displaying the static page having the dynamic content.