You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2009/05/12 05:07:18 UTC

t5: upgrading from 5.0.18 to 5.1.0.5

Hi,
I'm upgrading an app to 5.1.0.5, got this problem:

TypeError: Value undefined (result of expression element.attachEvent) is not
object.
http://localhost:8080/assets/scriptaculous/5.1.0.5/prototype.js (line 4016)

setting this:
  configuration.add("tapestry.combine-scripts", "false");
        configuration.add("tapestry.script-at-top", "true");
does not help, any idea why? Thanks,


-- 
View this message in context: http://www.nabble.com/t5%3A-upgrading-from-5.0.18-to-5.1.0.5-tp23495396p23495396.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.0.18 to 5.1.0.5

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, May 12, 2009 at 12:46 AM, Angelo Chen
<an...@yahoo.com.hk> wrote:

> if i uncomment the script referring to jquery below, the two errors will go
> away, then, how to include jquery in the tml? thanks

Hi!

Both Prototype (used by Tapestry internally) and jQuery define a $()
function. To use both without jQuery messing up Prototype, take a look
at this page: http://docs.jquery.com/Using_jQuery_with_Other_Libraries.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: upgrading from 5.0.18 to 5.1.0.5

Posted by Angelo Chen <an...@yahoo.com.hk>.
Hi,
I found out this:

if i uncomment the script referring to jquery below, the two errors will go
away, then, how to include jquery in the tml? thanks

<head>
    <title>Start Page</title>
     <!--<script src="/js/jquery-1.2.6.min.js"
type="text/javascript"></script>-->
</head>
<body>

    <p>test page1</p>
    <t:form t:id="myform" t:clientValidation="true">
         <input t:type="textarea" t:id="announcement" t:value="announcement"
/>
            <input t:type="submit" name="Submit" t:id="Submit"
value="Submit"/>
            <t:errors/>
        </t:form>
</body>
</html>



Angelo Chen wrote:
> 
> Hi,
> I'm upgrading an app to 5.1.0.5, got this problem:
> 
> TypeError: Value undefined (result of expression element.attachEvent) is
> not object.
> http://localhost:8080/assets/scriptaculous/5.1.0.5/prototype.js (line
> 4016)
> 
> setting this:
>   configuration.add("tapestry.combine-scripts", "false");
>         configuration.add("tapestry.script-at-top", "true");
> does not help, any idea why? Thanks,
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/t5%3A-upgrading-from-5.0.18-to-5.1.0.5-tp23495396p23495638.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org