Back to results
US 8,510,378 B2Granted
System and method for auto-generating JavaScript
AssigneeAppcelerator, Inc.
InventorsPaul Colton, Uri Sarid, Kevin Edward Lindsey
Life of this patent
Estimating the term…
Abstract
A method, system, Web-environment and computer program product for automatically generating proxies and meta-proxies for script code in an HTML document. The invention preferably operates with a system that allows for JavaScript to be utilized on the server-side.
Claims16
A method for automatically generating meta-proxies in a hypertext mark up language (HTML) document, the method comprising:
- receiving the HTML document at a server-core on a server-side of a network;
- parsing and executing the HTML document at the server-core to create and populate a document object model (DOM) of the HTML document, wherein the DOM includes code comprising at least one client-callable function configured to be executed on the server-side of the network;
- modifying the DOM at a server-framework on the server-side by generating a meta-proxy for each of the client-callable functions of the code plurality of meta-proxy that automatically replaces the respective client-callable function of the HTML document, the modification of the DOM creating a modified DOM;
- serializing the modified DOM as a modified HTML document at the server-core;
- streaming the modified HTML document to a browser on a client-side of a network;
- receiving on the server-side an extended markup language (XML) HTTP request comprising the meta-proxy;
- restoring the respective client callable function corresponding to the meta-proxy;
- obtaining a result for the respective client-callable function;
- and
- transmitting the result to the client-side.
7 more elements
A method for automatically generating proxies in an hypertext mark up language (HTML) document, the method comprising:
- parsing and executing the HTML document at a server-core on a server-side to create and populate a document object model (DOM) of the HTML document, the HTML document comprising a first code operable on the server-side and callable from a client-side;
- modifying the DOM of the HTML document by a server-framework on the server-side to remove the first code operable on the server-side and inject a first proxy code for the first code and a second proxy code for the first code to create a modified DOM, wherein the second proxy code is configured to allow a client-side to request execution of the first code on the server-side;
- serializing the modified DOM into a modified HTML document at the server-code of the server-side;
- and
- streaming the modified HTML document to the client-side.
2 more elements
Dependencies are inferred from the claim text.