Tuesday 18 February 2003 3:34:56 am
While converting a site to ez3 I found a number of gotcha's for external files. Basicly css and js files. The CSS can be handled by <link href={"stylesheets/general.css"|ezdesign} rel="stylesheet" type="text/css" /> where the stylesheets directory is under design/slo/ (in this case) No problem there. background images in the CSS style can be found using relative paths (../images) which solves most of my problems there. Javascript files are more problematic. Mozilla reports:
Error: syntax error
Source File: http://ezslo.slo.nl/design/slo/javascript/screen.js
Line: 2
Source Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" The path is ok, that's where the file is. Of course it doesn't contain a DOCTYPE line so where thatone comes from is beond me. The call is made through:
<script language="JavaScript" src={"javascript/screen.js"|ezdesign} type="text/javascript"> </script> which works as it should outside of ez. Who can shine some light here? Thanks.
|