Forum Moderators: open

Message Too Old, No Replies

Inculde Command

Help with Include Command

         

Costanza

11:54 pm on Feb 14, 2007 (gmt 0)

10+ Year Member



Hello, I am having trouble with the javascript include command if anyone could just post its correct format and attributes it would be most appreciated.

phranque

12:02 am on Feb 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



is this what you mean?
<script type="text/javascript" src="path/to/some_javascript.js"> </script>

Costanza

3:15 am on Feb 15, 2007 (gmt 0)

10+ Year Member



no, what i was trying to accomplish i was trying yo use javascript to take the place of a frame. So i wanted to use the <!-- # include file="filename" --> script.

phranque

3:45 am on Feb 15, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i think you are confusing this with the SSI include directive which is done on the server, not in the browser.
<!--#include file="/path/to/include.file" -->

you could do something like this:

<script type="text/javascript" src="path/to/some_javascript.js"> </script>

where some_javascript.js contains:

document.write("<table>")
document.write("<tr>")
document.write("<td>")
...