|
|
|
|
|
by pkphilip
563 days ago
|
|
I wish HTML supported a concept of a "<PAGE>" tag which will allow multiple pages to be defined in a single HTML file and which can be shown one at a time but without the look-and-feel of a dialog. Each PAGE should be able to pull in common sections from the same page such as the header, sidebar, footer etc based on specific states selectable in each PAGE. Yes, you can do the same thing with the current approaches by hiding and showing divs etc.. But if it were possible to support these approaches via specific tags in HTML it may help. EXAMPLE: <COMMON>
<script>
.. common javascript elements here
</script>
<SECTION id="header">
...
</SECTION>
<SECTION id="sidebar">
...
</SECTION>
<SECTION id="footer">
...
</SECTION>
</COMMON>
<PAGE default name="Home">
<INCLUDE from="header"/>
<INCLUDE from="sidebar"/>
<DIV>
.....
</DIV>
<INCLUDE from="footer"/>
</PAGE>
<PAGE name="Login">
<INCLUDE from="header"/>
<DIV>
.....
</DIV>
<INCLUDE from="footer"/>
</PAGE>
<PAGE name="Profile">
<INCLUDE from="header"/>
<INCLUDE from="sidebar"/>
<DIV>
.....
</DIV>
<INCLUDE from="footer"/>
</PAGE>
|
|