Re: Dynamic Scripting

by "Andrew Armstrong" <andrew(at)wisca.co.uk>

 Date:  Tue, 23 Oct 2001 10:10:25 +0100
 To:  "HWG Techniques" <hwg-techniques(at)hwg.org>,
"Ben Ocean" <lists(at)TheWebsons.com>
 References:  thewebsons
  todo: View Thread, Original
Shouldn't the image have a file extension? top.gif or top.jpg for example?

Or, is the problaem with <dtml-var size> anyway? should there be a dot in
there somewhere? Perhaps I have misunderstood the question, but it looks to
me as if <dtml-var size> confuses javascript. I tried:

var <dtml-var size>=0.3;
alert(<dtml-var size>);

and the result was no alert. There was an error message:

Expected identifier
Code 0


Andrew

----- Original Message -----
From: "Ben Ocean" <lists(at)TheWebsons.com>
To: <hwg-techniques(at)hwg.org>
Sent: Tuesday, October 23, 2001 4:20 AM
Subject: Dynamic Scripting


> Hi;
> Why won't this javascript work? (The <dtml> stuff is a variable I call and
> renders just fine, thank you.)
>
> <span class="top"><img src="images/top"
> width="javascript:'Math.round(1008*<dtml-var size>)'"
> height="javascript:'Math.round(82*<dtml-var size>)'" ></span>
>
> TIA,
> BenO
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA