khaki
05-02-2003, 04:10 PM
Hi everyone! ...
I've just been told that I am mis-using an Include (ServerSideInclude) and I would like to hear from others if I actually am or not (i probably am... i am such a hack :rolleyes: ).
ok... so I have a page (it's an ASP page to be exact)...
and it basically looks something like this:
<html>
<head></head>
<body>
<table>
<tr>
<td>blah</td>
</tr>
<tr>
<td><!-- #include file="myTable.inc" --></td>
</tr>
<tr>
<td>blah</td>
</tr>
</table>
</body>
</html>
and then the Include (myTable.inc) looks like this:
<table>
<tr>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
</tr>
</table>
I use this to... (get ready... :eek: ) ...to nest a table :eek: !!!
... but it works fine (tested on IE 5.0, 5.5, 6.0, N7, Opera6.02)
Is that allowed?
And if not... could I get away with it by encapsulating it as asp inside respose.write lines?
This particular Include (table data) is used across many. many pages...
and it's just so much easier to update the content within the Include table than to update each page (and <iframe> is not an option... so we don't need to go there :rolleyes: ).
So... mis-use?
Any suggestions?
We have such a cross-section of experts/opinions here in this forum... I'm curious to hear the responses :)
hacking away the moments that make up a dull day...
;) k
I've just been told that I am mis-using an Include (ServerSideInclude) and I would like to hear from others if I actually am or not (i probably am... i am such a hack :rolleyes: ).
ok... so I have a page (it's an ASP page to be exact)...
and it basically looks something like this:
<html>
<head></head>
<body>
<table>
<tr>
<td>blah</td>
</tr>
<tr>
<td><!-- #include file="myTable.inc" --></td>
</tr>
<tr>
<td>blah</td>
</tr>
</table>
</body>
</html>
and then the Include (myTable.inc) looks like this:
<table>
<tr>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
</tr>
<tr>
<td>blah</td>
</tr>
</table>
I use this to... (get ready... :eek: ) ...to nest a table :eek: !!!
... but it works fine (tested on IE 5.0, 5.5, 6.0, N7, Opera6.02)
Is that allowed?
And if not... could I get away with it by encapsulating it as asp inside respose.write lines?
This particular Include (table data) is used across many. many pages...
and it's just so much easier to update the content within the Include table than to update each page (and <iframe> is not an option... so we don't need to go there :rolleyes: ).
So... mis-use?
Any suggestions?
We have such a cross-section of experts/opinions here in this forum... I'm curious to hear the responses :)
hacking away the moments that make up a dull day...
;) k