forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter B. West" <>
Subject Re: Foreign html + javascript links + .js file
Date Sat, 08 Mar 2003 16:25:17 GMT
Jeff Turner wrote:
> On Sun, Mar 09, 2003 at 12:04:27AM +1000, Peter B. West wrote:
>>I have these files now being successfully included.  However...
>>Jeff Turner wrote:
>>>On Sat, Mar 01, 2003 at 10:04:06PM +1000, Peter B. West wrote:
>>>>Jeff Turner wrote:
>>>>>You could have a regular well-formed HTML file:
>>>>> <script language="JavaScript" type="text/javascript" 
>>>>> src="resources/script.js"/>
>>>>> <h1>Blah ..</h1>
>>>>> ....
>>>>>If saved with a .ehtml extension ("embedded html"), everything below the
>>>>><body> is copied across verbatim, and the header and menus are added.
>>The problem here is that the script element, not being in the body, is 
>>not being copied across.  Consequently, my javascript: links are not 
>>working.  Any way around this?
> Can you move the <script> into the body?
> Adding support for stuff in <head> is possible, but a bit messy, so I'm
> interested to find out if there's any use-cases where things *have* to be
> in <head>..


Only if one is under the mistaken impression that <script> can only 
occur within <head>.  How embarassing.  Thanks.
Peter B. West
"Lord, to whom shall we go?"

View raw message