I had the same problem.
Unfortunatly calling
jQuery.noConflict() did not help, either.
Don't know what the exact problem was.
My workaround: I did not include jQuery via @IncludeJavaScriptLibrary,
but instead I loaded it with a plain script tag in my layout component
and then called jQuery.noConflict().
That helped, the error message went away and jQuery worked ini my pages
Andy
Angelo Chen schrieb:
Hi,
following error always show up in the error console of Firefox:
Error: element.attachEvent is not a function
Source File: http://127.0.0.1:8080/assets/5.0.18/scriptaculous/prototype.js
Line: 4016
line: 4071
if I uncomment the following line, error goes away, any idea why?
java code:
//@IncludeJavaScriptLibrary({"context:/js/jquery-1.3.2.min.js"})
public class Test2 {
}
template:
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
< head>
< title>Start Page</title>
< /head>
< body>
< h1>test</h1>
< /body>
< /html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org