P
Peter Bassett
I have a .shtml file, that displays photos, in which I wish to pass some
functionality off to an Include file for reusability purposes.
Unfortunately, it's not working.
Here is a portion of the .shtml file:
======
<!--#include file="/tmb8/functions.inc"-->
<script type="text/javascript">
var title = "Noosa, Australia - October / November 2003"
..
..
..
displayphotos(photoarray, args, photosinarow)
======
Here is functions.inc:
========
<%
function displayphotos(photoarray, args, photosinarow)
document.write("hello, world<br>")
end function
%>
==========
To start, I just want to see Hello, World but I just get nothing - the page
is at http://www.solotraveller.com/tmb8/tmb8noosa1oct2003/index.shtml
I think I'm putting the #include statement in the wrong place.
I have been able to get functions to work earlier, but they were called
from .asp files, not .shtml files.
functionality off to an Include file for reusability purposes.
Unfortunately, it's not working.
Here is a portion of the .shtml file:
======
<!--#include file="/tmb8/functions.inc"-->
<script type="text/javascript">
var title = "Noosa, Australia - October / November 2003"
..
..
..
displayphotos(photoarray, args, photosinarow)
======
Here is functions.inc:
========
<%
function displayphotos(photoarray, args, photosinarow)
document.write("hello, world<br>")
end function
%>
==========
To start, I just want to see Hello, World but I just get nothing - the page
is at http://www.solotraveller.com/tmb8/tmb8noosa1oct2003/index.shtml
I think I'm putting the #include statement in the wrong place.
I have been able to get functions to work earlier, but they were called
from .asp files, not .shtml files.