You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2013/11/18 11:21:48 UTC

[jira] [Commented] (TAP5-2224) t5/core/ajax should return a RequestWrapper

    [ https://issues.apache.org/jira/browse/TAP5-2224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13825248#comment-13825248 ] 

Jochen Kemnade commented on TAP5-2224:
--------------------------------------

The patch adds a RequestWrapper that supports an {{abort()}} method. As Prototype's {{Ajax.Request}} does not support aborting, the {{t5-core-dom-prototype}} implementation only throws an error.

> t5/core/ajax should return a RequestWrapper
> -------------------------------------------
>
>                 Key: TAP5-2224
>                 URL: https://issues.apache.org/jira/browse/TAP5-2224
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Jochen Kemnade
>              Labels: ajax
>         Attachments: 0001-add-RequestWrapper-that-supports-aborting-an-ajax-re.patch
>
>
> Currently, {{t5/core/ajax}} (which delegates to {{t5/core/dom/ajaxRequest}}) returns {{t5/core/dom/wrapElement}} (due to the {{return exports}} line in {{t5-core-dom.coffee}}.
> The return type should be a wrapper around jQuery's jqXHR and Prototype's {{Ajax.Request}}.
> My use case is that I want to be able to abort a running Ajax request.



--
This message was sent by Atlassian JIRA
(v6.1#6144)