发明名称 |
Method, framework, and program product for formatting and serving web content |
摘要 |
The present invention provides an approach and corresponding framework that separates data from its formatting/view by generating the dynamic JavaScript (data) as a set (e.g., at least one) of JavaScript (data) objects, without any HTML formatting. Then, a set of JavaScript functions can be created that takes the set of JavaScript objects as a parameter, and outputs all or a subset of this data object in a format determined by this JavaScript function. In general, these formatting functions can be static, rather than dynamic, JavaScript. This approach has the advantage of providing a much greater degree of formatting flexibility, without the need for each new format to establish a connection with the back-end system providing the data. |
申请公布号 |
US8972932(B2) |
申请公布日期 |
2015.03.03 |
申请号 |
US201213571003 |
申请日期 |
2012.08.09 |
申请人 |
International Business Machines Corporation |
发明人 |
Liu Zhiqiang;Lai Jennifer;McDonald Brian J.;Miller Laurie;Ughetta Karen A.;Ravin Yael |
分类号 |
G06F9/44 |
主分类号 |
G06F9/44 |
代理机构 |
Hoffman Warnick LLC |
代理人 |
Pivnichny John R.;Hoffman Warnick LLC |
主权项 |
1. A method for formatting and serving web content, comprising:
requesting a set of JavaScript objects and a set of JavaScript functions in a single Hypertext Transfer Protocol (HTTP) request; in response to the requesting:
obtaining the set of JavaScript objects that represents dynamic JavaScript data without hypertext markup language (HTML) formatting; andobtaining the set of JavaScript functions for formatting the set of JavaScript objects, the set of JavaScript objects being distinct from the set of JavaScript functions; employing a computer processing unit to format the set of JavaScript objects to include HTML formatting using the set of JavaScript functions as a parameter; and outputting at least a subset of the set of JavaScript objects in a format determined by the set of JavaScript functions. |
地址 |
Armonk NY US |