[
https://issues.apache.org/jira/browse/TAPESTRY-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591900#action_12591900
]
Alex.Hon commented on TAPESTRY-2341:
------------------------------------
@see
http://www.prototypejs.org/2007/10/16/prototype-1-6-0-rc1-changes-to-the-class-and-event-apis-hash-rewrite-and-bug-fixes
#Changes to the Event API
modify tapestry.js about linkZone:function...
- element.onsubmit = handler;
+ Event.observe(element, 'submit', handler);
- element.onclick = handler;
+ replace to:Event.observe(element, 'click', handler);
and need add line :Event.stop(event);
after new Ajax.Request(element.href, { onSuccess : successHandler });
> AJAX Zone updating doesn't work correctly in IE
> -----------------------------------------------
>
> Key: TAPESTRY-2341
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2341
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.11
> Environment: T5.0.11, IE6.0.2900, FF2.0.0.6, Tomcat5.5.9
> OS: Windows XP
> Reporter: Andy Blower
> Attachments: BasicAJAX.java, BasicAJAX.tml
>
>
> The attached page demonstrates that if an actionlink that causes a zone
> refresh via AJAX is part of the refreshed zone itself, it only works on
> alternate clicks in IE6.
> Each time the link is rendered as part of the zone update it causes a full
> page refresh when clicked, which means it can do a zone update the following
> click. It works fine in Firefox though. (Josh Canfield reports it works okay
> in IE7)
> Additionally, if I return a block instead of a zone the second click in the
> link inside causes the ComponentEventException shown below, instead of the
> full page refresh.
> org.apache.tapestry.runtime.ComponentEventException - A component event
> handler method returned the value [EMAIL PROTECTED] Return type
> org.apache.tapestry.internal.structure.BlockImpl can not be handled.
> Configured return types are java.lang.Class, java.lang.String, java.net.URL,
> org.apache.tapestry.Link, org.apache.tapestry.StreamResponse,
> org.apache.tapestry.runtime.Component.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]