forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <je...@apache.org>
Subject Re: Foreign html + javascript links + .js file
Date Sat, 08 Mar 2003 14:25:20 GMT
On Sun, Mar 09, 2003 at 12:04:27AM +1000, Peter B. West wrote:
> Jeff,
> 
> 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:
> >>>
> >>><html>
> >>><body>
> >>>  <script language="JavaScript" type="text/javascript" 
> >>>  src="resources/script.js"/>
> >>>  <h1>Blah ..</h1>
> >>>  ....
> >>></body>
> >>></html>
> >>>
> >>>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>..

--Jeff

> Peter
> -- 
> Peter B. West  pbwest@powerup.com.au  http://www.powerup.com.au/~pbwest/
> "Lord, to whom shall we go?"
> 

Mime
View raw message