| From | Sent On | Attachments |
|---|---|---|
| Angelo Chen | Jun 5, 2009 2:43 am | |
| Onno Scheffers | Jun 5, 2009 3:08 am | |
| Andy Pahne | Jun 5, 2009 3:52 am | |
| Thiago H. de Paula Figueiredo | Jun 5, 2009 5:38 am | |
| Angelo Chen | Jun 5, 2009 6:01 am | |
| Thiago H. de Paula Figueiredo | Jun 5, 2009 6:04 am | |
| Angelo Chen | Jun 5, 2009 6:22 am |
| Subject: | Re: T5: using jQuery in 5.0.18 | |
|---|---|---|
| From: | Andy Pahne (andy...@gmail.com) | |
| Date: | Jun 5, 2009 3:52:17 am | |
| List: | org.apache.tapestry.users | |
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>





