Claims
- 1. A method for processing documents in a data processing system, the method comprising:
obtaining a first markup language document by a server-side process; in response to obtaining the first markup language document, inserting or modifying by the server-side process a triggering element in the first markup language document to generate a modified markup language document, wherein the triggering element is interpreted by a client browser when loading a document containing the triggering element to call a function in scripting language statements in a second markup language document; and sending the modified markup language document to the client.
- 2. The method of claim 1 wherein the markup language is Hypertext Markup Language (HTML).
- 3. The method of claim 2 wherein the triggering element is an HTML “onLoad” attribute.
- 4. The method of claim 1 wherein the server-side process executes within a filter servlet.
- 5. The method of claim 1 wherein the function verifies contents of the modified markup language document at the client.
- 6. The method of claim 1 further comprising:
retrieving a resource name that is associated with the first markup language document; retrieving a function name for the function that is associated with the resource name; and setting the function name in the triggering element.
- 7. The method of claim 6 wherein the resource name is a Uniform Resource Identifier (URI).
- 8. The method of claim 1 wherein the scripting language statements are JavaScript statements.
- 9. An apparatus for processing documents, the apparatus comprising:
means for obtaining a first markup language document by a server-side process; means for inserting or modifying by the server-side process a triggering element in the first markup language document to generate a modified markup language document in response to obtaining the first markup language document, wherein the triggering element is interpreted by a client browser when loading a document containing the triggering element to call a function in scripting language statements in a second markup language document; and means for sending the modified markup language document to the client.
- 10. The apparatus of claim 9 wherein the markup language is Hypertext Markup Language (HTML).
- 11. The apparatus of claim 10 wherein the triggering element is an HTML “onLoad” attribute.
- 12. The apparatus of claim 9 wherein the server-side process executes within a filter servlet.
- 13. The apparatus of claim 9 wherein the function verifies contents of the modified markup language document at the client.
- 14. The apparatus of claim 9 further comprising:
means for retrieving a resource name that is associated with the first markup language document; means for retrieving a function name for the function that is associated with the resource name; and means for setting the function name in the triggering element.
- 15. The apparatus of claim 14 wherein the resource name is a Uniform Resource Identifier (URI).
- 16. The apparatus of claim 9 wherein the scripting language statements are JavaScript statements.
- 17. A computer program product on a computer readable medium for use in a data processing system for processing documents, the computer program product comprising:
means for obtaining a first markup language document by a server-side process; means for inserting or modifying by the server-side process a triggering element in the first markup language document to generate a modified markup language document in response to obtaining the first markup language document, wherein the triggering element is interpreted by the client browser when loading a document containing the triggering element to call a function in scripting language statements in a second markup language document; and means for sending the modified markup language document to the client.
- 18. The computer program product of claim 17 wherein the markup language is Hypertext Markup Language (HTML).
- 19. The computer program product of claim 18 wherein the triggering element is an HTML “onLoad” attribute.
- 20. The computer program product of claim 17 wherein the server-side process executes within a filter servlet.
- 21. The computer program product of claim 17 wherein the function verifies contents of the modified markup language document at the client.
- 22. The computer program product of claim 17 further comprising:
means for retrieving a resource name that is associated with the first markup language document; means for retrieving a function name for the function that is associated with the resource name; and means for setting the function name in the triggering element.
- 23. The computer program product of claim 22 wherein the resource name is a Uniform Resource Identifier (URI).
- 24. The computer program product of claim 17 wherein the scripting language statements are JavaScript statements.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present application is a continuation-in-part application of the following application, which is assigned to the same assignee as the present application and is hereby incorporated by reference:
[0002] Application Ser. No. 09/766,062, filed Jan. 22, 2001, titled “Method, system, and program for a platform-independent, browser-based, client-side, test automation facility for verifying Web site operation”.
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09766062 |
Jan 2001 |
US |
Child |
10286000 |
Oct 2002 |
US |