×

Method and system for wrapping and componentizing javascript centric widgets using java components

  • US 8,150,939 B1
  • Filed: 05/11/2007
  • Issued: 04/03/2012
  • Est. Priority Date: 05/11/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method for providing a JavaScript wrapper framework divided between a client and a server for componentizing JavaScript centric widgets, the method comprising:

  • receiving a request for a widget to be rendered on the client, the request including a tag that defines a plurality of tag attributes that distinctly identify the widget, the request received by a client runtime component executing on the client, the client runtime component configured to load the widget when a HTML page initially loads on the client;

    forwarding the request to the server,the server identifying the widget based on the plurality of tag attributes received by a server-side component, the widget associated with a plurality of component resources; and

    the server generating a JavaScript wrapper code for each of the plurality of component resources associated with the widget and for the widget identified at the server using the plurality of tag attributes, the generated JavaScript wrapper code used in wrapping the widget and the associated plurality of component resources of the widget to provide a customized widget, wherein the wrapping of the widget and the associated plurality of component resources is customized to distinctly identify the widget, the customization enabling the widget to be rendered multiple times on the HTML page at the client without conflicts;

    receiving the wrapper code encompassing the widget and the associated plurality of component resources for the widget at the client; and

    rendering the widget on the HTML page at the client during the initial HTML page load based on information provided by the associated plurality of component resources, the associated plurality of component resources defining behavior and style of the widget, wherein the rendering of the widget further includes injecting each of the plurality of component resources in an order at an appropriate location of the HTML page so that the component resources are evaluated in a global scope of the HTML page when rendered at the client, wherein the plurality of component resources includes at least a component resource from a service and wherein the service is an external service residing on a domain external to a web application domain associated with an application requesting the widget on the client, the external service is associated with a plurality of external component resources, the plurality of external component resources retrieved using a generic proxy residing on the server, the generic proxy configured to provide restricted access to the external service.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×