摘要 |
A method and computer program product for automatically populating data in a tree widget on a Web page are provided. The method includes rendering a tree structure of tree nodes populated with data in a viewable area of a Web page, creating placeholder nodes without data in the tree structure, and placing the placeholder nodes in a hidden area of the Web page. The method also includes monitoring for a scrolling request to shift the tree structure in the viewable area of the Web page, and initiating an asynchronous request for data to populate a subset of the placeholder nodes in response to the scrolling request. The method further includes receiving the data to populate the subset of placeholder nodes, populating the subset of placeholder nodes with the received data, and shifting the subset of placeholder nodes with the received data to the viewable area of the Web page.
|