Create a "pagelet" that can be sent down the browser as soon as the given content is available and rendered
client-side into the correct spot on the page, as identified by the given DOM id. This is done by:
1. Wrapping the given content in HTML markup that will not be visible when the browser first processes it
2. Adding JavaScript that will extract the hidden content and insert it into the proper location in the DOM
Use the Pagelet.fromXXX methods to create Pagelets from a variety of types. Use the Pagelet.asHtmlXXX methods to
get the HTML/JS code that you should insert into your page.
Create a "pagelet" that can be sent down the browser as soon as the given content is available and rendered client-side into the correct spot on the page, as identified by the given DOM id. This is done by:
1. Wrapping the given content in HTML markup that will not be visible when the browser first processes it 2. Adding JavaScript that will extract the hidden content and insert it into the proper location in the DOM
Use the Pagelet.fromXXX methods to create Pagelets from a variety of types. Use the Pagelet.asHtmlXXX methods to get the HTML/JS code that you should insert into your page.