Rendering a web element in a web page
AssigneeInternational Business Machines Corporation
InventorsNa Dong, David L. Kaminsky, Yun Li Li, Xi Ning Wang, Rui Yin
Life of this patent
Estimating the term…
Abstract
Rendering a web element in a web page in an integrated development environment is provided. A reference address is extracted from code of a web page. The reference address references a web element. The web element is obtained based on the reference address and in response to the reference address indicating that the web element is an embedded web element. The web element is added to a resource pool. The web element of the resource pool is rendered in the web page.
Claims20
A method for rendering a web element in a web page in an integrated development environment (IDE), the method comprising:
- in response to editing a webpage of a project within an IDE, determining, by one or more computer processors, that a rendered display of the webpage within the IDE lacks display of a web element included in the code of the webpage as compared to the rendered display of the webpage within a web browser and deployed to a web page controller;
- extracting, by one or more processors, one or more reference addresses from the code of the webpage, wherein a first reference address corresponds to a first web element;
- determining, by one or more processors, that the first reference address associated with the first web element of the webpage is not associated with a corresponding physical address;
- in response to determining that the first reference address associated with the first web element of the webpage is not associated with a corresponding physical address, deploying, by one or more computer processors, the project to the web page controller;
- obtaining, by one or more processors, from the web page controller, a physical address for the first web element that includes contextual information of the web page controller;
- adding, by one or more processors, an association relationship between the first reference address and the obtained physical address, including the contextual information of the web page controller, corresponding to the first web element, to an association relationship table;
- and
- rendering, by one or more processors, within the IDE, the webpage utilizing the first web element, based on identifying the first reference address having an association relationship with the obtained physical address corresponding to the first web element within the association relationship table.
A computer program product for rendering a web element in a web page in an integrated development environment (IDE), the computer program product comprising:
- a computer readable storage medium and program instructions stored on the computer readable storage medium, the program instructions comprising:
- program instructions to respond to editing a webpage of a project within an IDE, by determining that a rendered display of the webpage within the IDE lacks display of a web element included in code of the webpage as compared to the rendered display of the webpage within a web browser and deployed to a web page controller;
- program instruction to extract one or more reference addresses from the code of the webpage, wherein a first reference address corresponds to a first web element;
- program instructions to determine that the first reference address associated with the first web element of the webpage is not associated with a corresponding physical address;
- program instructions to respond to determining that the first reference address associated with the first web element of the webpage is not associated with the corresponding physical address by deploying the project to the web page controller;
- program instructions to obtain, from the web page controller, a physical address for the first web element that includes contextual information of the web page controller;
- program instructions to add an association relationship between the first reference address and the obtained physical address, including the contextual information of the web page controller, corresponding web element, to an association relationship table;
- and
- program instructions to render, within the IDE, the web page utilizing the first web element, based on identifying the first reference address having an association relationship with the obtained physical address corresponding to the first web element within the association relationship table.
A computer system for rendering a web element in a web page in an integrated development environment (IDE), the computer system comprising:
- one or more computer processors;
- one or more computer readable storage media;
- program instructions stored on the computer readable storage media for reading/execution by at least one of the one or more computer processors, the program instructions further comprising:
- program instructions to respond to editing a webpage of a project within an IDE, by determining that a rendered display of the webpage within the IDE lacks display of a web element included in code of the webpage as compared to the rendered display of the webpage within a web browser and deployed to a web page controller;
- program instruction to extract one or more reference addresses from the code of the webpage, wherein a first reference address corresponds to a first web element;
- program instructions to determine that the first reference address associated with the first web element of the webpage is not associated with a corresponding physical address;
- program instructions to respond to determining that the first reference address associated with the first web element of the webpage is not associated with the corresponding physical address by deploying the project to the web page controller;
- program instructions to obtain, from the web page controller, a physical address for the first web element that includes contextual information of the web page controller;
- program instructions to add an association relationship between the first reference address and the obtained physical address, including the contextual information of the web page controller, corresponding web element, to an association relationship table;
- and
- program instructions to render, within the IDE, the web page utilizing the first web element, based on identifying the first reference address having an association relationship with the obtained physical address corresponding to the first web element within the association relationship table.
Dependencies are inferred from the claim text.