I have a <script type="text/html"> like below:
<script type="text/html" id="id">
// I want to import HTML from a file here
</script>
Please suggest any other solution than <object>, <iframe> and <embed>
Those tags are messing up my CSS as they insert their own HTML, BODY and other elements.
I would prefer NOT using jQuery. Although not so adamant about it.
EDIT:
script type="text/html" is MUST as I am using templates to route between the pages. And the template is identified by the "id" of this script type="text/html" element.
<%@ include file="fileName.jspf"%>. If its external file/content then you need to use iframe.