tqwhite
unread,Oct 11, 2010, 4:40:13 PM10/11/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JavaScriptMVC
I have a view file that contains exactly this (with no whitespace
outside the angle braces):
<%var activity=activity;%>
It used to contain lots more, but I tried to simplify find the minimum
that would give me an error.
That error is:
js: illegally formed XML syntax
js: <%var activity='hello';%>
js: ........................^
js: syntax error
js: <%var activity='hello';%>
js: ........................^
could not load script file:///[BlahBlah]l/views/inputField.ejs
InternalError: Compilation produced 2 syntax errors.
error loading script [object HTMLElement] InternalError:
Compilation produced 2 syntax errors.
The file (and the real one that preceded it) runs correctly. In fact,
I have a dozen views of varying complexity that all work correctly to
give me a running app but tons of errors from compress.js.
Any thoughts? Is compress.js supposed to work at present?
thanks,
tqii
ps, Here's another pair of clues:
A file with nothing in it except
hello
fails with:
could not load script file:///[BlahBlah]/inputField.ejs
ReferenceError: "hello" is not defined.
error loading script [object HTMLElement] ReferenceError:
"hello" is not defined.
If I change it to:
<b>hello</b>
I get no error.
Both examples work correctly in the browser.